ctucx.git: alpine-pkgs

My personal alpine-packages [deprecated in favor of nixos]

commit c63893b74b05243d7eada474c40095e447eaa3da
parent b516765661c45b5d5eee000532861dd8a125edf4
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 20 Jan 2021 20:44:17 +0100

oeffisearch: cleanup
1 file changed, 14 insertions(+), 13 deletions(-)
M
oeffisearch/APKBUILD
|
27
++++++++++++++-------------
diff --git a/oeffisearch/APKBUILD b/oeffisearch/APKBUILD
@@ -1,8 +1,8 @@
-# Contributor:
-# Maintainer:
+# Contributor: Leah (ctucx) <leah@ctu.cx>
+# Maintainer: Leah (ctucx) <leah@ctu.cx>
 pkgname=oeffisearch
 pkgver=0.0.1
-pkgrel=12
+pkgrel=13
 pkgdesc="fast and simple tripplanner for the web"
 url="https://cgit.ctu.cx/fritzbox-exporter"
 arch="all"

@@ -10,13 +10,14 @@ license="MIT"
 depends="openssl"
 makedepends="nim"
 install="$pkgname.pre-install"
-subpackages=""
-source="$pkgname.tar.gz::https://cgit.ctu.cx/oeffisearch/snapshot/oeffisearch-master.tar.gz
-        $pkgname.initd"
-builddir="$srcdir/$pkgname-master/"
+subpackages="${pkgname}-openrc"
+_commit="5520fbf0c4c3bb57a22457fd2f326fd8bf19e4e2"
+source="${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/oeffisearch/snapshot/oeffisearch-${_commit}.tar.gz
+        ${pkgname}.initd"
+builddir="${srcdir}/${pkgname}-${_commit}/"
 
 build() {
-	cd $builddir
+	cd ${builddir}
 	nim c -d:release --nimcache:$PWD src/oeffisearch.nim
 }
 

@@ -25,11 +26,11 @@ check() {
 }
 
 package() {
-	install -Dm755 src/$pkgname $pkgdir/usr/bin/$pkgname
-	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
-	mkdir -p $pkgdir/usr/share
-	cp -r client $pkgdir/usr/share/oeffisearch
+	install -Dm755 src/${pkgname} $pkgdir/usr/bin/${pkgname}
+	install -Dm755 ${srcdir}/${pkgname}.initd ${pkgdir}/etc/init.d/${pkgname}
+	mkdir -p ${pkgdir}/usr/share
+	cp -r client ${pkgdir}/usr/share/oeffisearch
 }
 
-sha512sums="a0751335cd61034c6a196b109afe3c201a6c91865906feb63c27e9240f82f706fe36e2b2d38994097999c7e4f703bdc97ce0710bd8fb34bd40a0fd994ca7f3f2  oeffisearch.tar.gz
+sha512sums="514c1c832617e5f7fcc9d23e0879a706c84d0d671146b1ff52398ad5d884d9c0a7d357e96b04aa9aec7a8183549f0c34af1cd5d5afecf5a77bd44f83d22779c0  oeffisearch-5520fbf0c4c3bb57a22457fd2f326fd8bf19e4e2.tar.gz
 65dd12c9edb74505a9b9b48ddc91da6a62372d81b6729cd38984bcc39935a34caa790cfdfb2e56a1bee19daa57a76c979ee4e675702d881fa30c20d40579a3ef  oeffisearch.initd"