Mail archive
alpine-aports

[alpine-aports] [PATCH v2] testing/samurai: new aport

From: Drew DeVault <sir_at_cmpwn.com>
Date: Fri, 28 Sep 2018 08:51:27 +0200

---
Incorporates feedback from an email off-list.
 testing/samurai/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/samurai/APKBUILD
diff --git a/testing/samurai/APKBUILD b/testing/samurai/APKBUILD
new file mode 100644
index 0000000000..19538db302
--- /dev/null
+++ b/testing/samurai/APKBUILD
_at_@ -0,0 +1,32 @@
+# Contributor: Drew DeVault <sir_at_cmpwn.com>
+# Maintainer: Drew DeVault <sir_at_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"
+replaces="ninja"
+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"
+	ln -s /usr/bin/samu $pkgdir/usr/bin/ninja
+}
+
+sha512sums="dd851f7f12315aa28157e88e6a07a14aa8636d331ee5712dd31f80eb484be445ba78c8f234ab2d63326b5e3b5407195052598fda15409056a438d94926265496  samurai-0.4.tar.gz"
-- 
2.18.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Sep 28 2018 - 08:51:27 GMT