aboutsummaryrefslogtreecommitdiffstats
path: root/testing/samurai/APKBUILD
blob: 388aabd561194ff919c3f01cf69b0d7d5247cbbc (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
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=samurai
pkgver=0.5
pkgrel=0
pkgdesc="ninja-compatible build tool written in C"
url="https://github.com/michaelforney/samurai"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/michaelforney/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	rm *.o
	./samu
}

package() {
	cd "$builddir"
	make install PREFIX="/usr" DESTDIR="$pkgdir"
}

sha512sums="8664c3c46d9f9a541c79906fb4264941c3226b6b9f7312275e6633c8501f8c34a8025d31b2b32163198db09eb28c9f92a2e2fd8356b18f689551ddf42bae9e5f  samurai-0.5.tar.gz"