blob: f62cda52dbf0f166a30a26368b6e8c9112f1bead (
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
|
# Maintainer: OverMighty <its.overmighty@gmail.com>
pkgname=i-use-arch-btw-git
pkgver=0.1.0.r14.c511373
pkgrel=1
pkgdesc="Turing-complete programming language"
arch=('x86_64')
url="https://github.com/overmighty/i-use-arch-btw"
license=('GPL3')
makedepends=('cmake' 'git')
source=("${pkgname%-git}::git+https://github.com/overmighty/i-use-arch-btw.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${pkgname%-git}"
cmake \
-S . \
-B build \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
cd "$srcdir/${pkgname%-git}"
DESTDIR="$pkgdir" cmake --install build
}
|