summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 526614b113d0afa8815504d993e36584fcbe0b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Yunus Emre Aydın <yunusaydin590 at gmail dot com>

_git_repo_name="Electra-Lang"
pkgname="electra-git"
pkgver=2.2.1
pkgrel=1
epoch=
pkgdesc="Electra is an esolang where you code like an electrician"
arch=("x86_64" "i686")
url="https://github.com/DolphyWind/$_git_repo_name.git"
license=("MIT")
groups=()
depends=("gcc-libs" "glibc")
makedepends=("git" "cmake")
checkdepends=()
optdepends=()
provides=("electra")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

pkgver() {
	cd "$_git_repo_name"
	git describe --tags | sed 's/-/./g' | cut -c2-99
}

build() {
	cd "$_git_repo_name"
	git switch stable
	mkdir -p build
	cd build
	cmake ..
	make
}

package() {
	cd "$_git_repo_name/build"
	make DESTDIR="$pkgdir/" install
	cd ..
	install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
	install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md
}