diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-27 15:35:58 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-27 14:37:18 +0000 |
commit | b5b0f991acd55cf66d3ca56d6fa678c2173f58ba (patch) | |
tree | 69187b58a3ed57154b9dd2ce2115729a7a87ed8b /testing/samurai | |
parent | 436bdaee513fd057e826466e5ba418b9918536d2 (diff) | |
download | aports-b5b0f991acd55cf66d3ca56d6fa678c2173f58ba.tar.bz2 aports-b5b0f991acd55cf66d3ca56d6fa678c2173f58ba.tar.xz |
testing/samurai: new aport
Diffstat (limited to 'testing/samurai')
-rw-r--r-- | testing/samurai/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/samurai/APKBUILD b/testing/samurai/APKBUILD new file mode 100644 index 0000000000..6d98642ea6 --- /dev/null +++ b/testing/samurai/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Drew DeVault <sir@cmpwn.com> +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=samurai +pkgver=0.4 +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="dd851f7f12315aa28157e88e6a07a14aa8636d331ee5712dd31f80eb484be445ba78c8f234ab2d63326b5e3b5407195052598fda15409056a438d94926265496 samurai-0.4.tar.gz" |