Subject: [PATCH 1/3] community/samurai: add ninja compat

From: Drew DeVault <[email-masked]>
Date: Mon, 9 Dec 2019 11:15:50 -0500

---
 community/samurai/APKBUILD | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/community/samurai/APKBUILD b/community/samurai/APKBUILD
index 358ec4a533..c14a9be14f 100644
--- a/community/samurai/APKBUILD
+++ b/community/samurai/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Drew DeVault <[email-masked]>
 pkgname=samurai
 pkgver=0.7
-pkgrel=0
+pkgrel=1
 pkgdesc="ninja-compatible build tool written in C"
 url="https://github.com/michaelforney/samurai"
 arch="all"
@@ -11,6 +11,8 @@ options="!check"  # No test suite.
 subpackages="$pkgname-doc"
 source="https://github.com/michaelforney/samurai/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
 builddir="$srcdir/$pkgname-$pkgver"
+provides=ninja
+replaces=ninja
 
 build() {
 	cd "$builddir"
@@ -20,6 +22,7 @@ build() {
 package() {
 	cd "$builddir"
 	make install PREFIX="/usr" DESTDIR="$pkgdir"
+	ln -s samu "$pkgdir"/usr/bin/ninja
 }
 
 sha512sums="c47120a2b516c0d130c5a01d99972979c69103d1c6b110722c4c6fcac3147df25d60d9d19913d7c78902c257800d6a5e1bcbb775618058ebfe6db29098dc4001  samurai-0.7.tar.gz"
-- 
2.24.0

---

From: Drew DeVault <[email-masked]>
Date: Mon, 9 Dec 2019 11:15:51 -0500

---
 {community => main}/samurai/APKBUILD | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {community => main}/samurai/APKBUILD (100%)

diff --git a/community/samurai/APKBUILD b/main/samurai/APKBUILD
similarity index 100%
rename from community/samurai/APKBUILD
rename to main/samurai/APKBUILD
-- 
2.24.0

---

From: Drew DeVault <[email-masked]>
Date: Mon, 9 Dec 2019 11:15:52 -0500

---
 {main => unmaintained}/ninja/APKBUILD       | 0
 {main => unmaintained}/ninja/fix-musl.patch | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename {main => unmaintained}/ninja/APKBUILD (100%)
 rename {main => unmaintained}/ninja/fix-musl.patch (100%)

diff --git a/main/ninja/APKBUILD b/unmaintained/ninja/APKBUILD
similarity index 100%
rename from main/ninja/APKBUILD
rename to unmaintained/ninja/APKBUILD
diff --git a/main/ninja/fix-musl.patch b/unmaintained/ninja/fix-musl.patch
similarity index 100%
rename from main/ninja/fix-musl.patch
rename to unmaintained/ninja/fix-musl.patch
-- 
2.24.0