Mail archive
alpine-aports

[alpine-aports] [PATCH v2] testing/ubase: update to 20190312

From: Drew DeVault <sir_at_cmpwn.com>
Date: Fri, 15 Mar 2019 14:17:05 -0600

---
 testing/ubase/APKBUILD | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)
diff --git a/testing/ubase/APKBUILD b/testing/ubase/APKBUILD
index 02f5a05c87..6709f80513 100644
--- a/testing/ubase/APKBUILD
+++ b/testing/ubase/APKBUILD
_at_@ -1,25 +1,33 @@
 # Contributor: Ivan Tham <pickfire_at_riseup.net>
-# Maintainer: Ivan Tham <pickfire_at_riseup.net>
+# Maintainer: Drew DeVault <sir_at_cmpwn.com>
+_commit=3c88778c6c85d97fb63c41c05304519e0484b07c
 pkgname=ubase
-pkgver=0.1
-pkgrel=1
+pkgver=20190312
+pkgrel=0
 pkgdesc="Suckless collection of unportable base"
 url="https://core.suckless.org/ubase"
 arch="all"
 license="MIT"
 subpackages="$pkgname-doc"
-source="https://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz"
-options="!check"
-builddir="$srcdir/"$pkgname-$pkgver
+makedepends="git"
+source="" # source is only distributed as a git repo
+options="suid !check" # upstream provides no test suite
+builddir="$srcdir/$pkgname"
+
+prepare() {
+	cd "$srcdir"
+	git clone git://git.suckless.org/ubase
+	cd ubase
+	git checkout $_commit
+}
 
 build() {
 	cd "$builddir"
-	make || return 1
+	make
 }
 
 package() {
 	cd "$builddir"
-	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
+	chmod a+s passwd
+	make DESTDIR="$pkgdir" PREFIX=/usr install
 }
-
-sha512sums="3d9feed9670cf2ad6a8af32d1ecf3c206c81c618ed4548127ff2ab18bf03dd31fb89abf7fc598c4422aa348099a62cf7bc0f7c5dbf652ecd0349afb5a1f30b34  ubase-0.1.tar.gz"
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Mar 15 2019 - 14:17:05 UTC