commit a21cbd04ba2eb7672592abfb44c94425b16c198b
parent f8f73955607a67701fe5180303915858f35fd37a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 20 Jan 2021 20:42:32 +0100
parent f8f73955607a67701fe5180303915858f35fd37a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 20 Jan 2021 20:42:32 +0100
chartsrv: cleanaup
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/chartsrv/APKBUILD b/chartsrv/APKBUILD @@ -1,5 +1,5 @@ -# Contributor: -# Maintainer: +# Contributor: Leah (ctucx) <leah@ctu.cx> +# Maintainer: Leah (ctucx) <leah@ctu.cx> pkgname=chartsrv pkgver=0.0.1 pkgrel=1 @@ -9,15 +9,16 @@ arch="all" license="MIT" depends="" makedepends="go" -install="$pkgname.pre-install chartsrv.post-deinstall" -subpackages="" -source="$pkgname.tar.gz::https://git.sr.ht/~sircmpwn/chartsrv/archive/master.tar.gz - $pkgname.initd - $pkgname.confd" -builddir="$srcdir/$pkgname-master/" +install="${pkgname}.pre-install ${pkgname}.post-deinstall" +subpackages="${pkgname}-openrc" +_commit="93505c9a5ede24397fae0cec6ffea0dc77b67993" +source="${pkgname}-${_commit}.tar.gz::https://git.sr.ht/~sircmpwn/chartsrv/archive/${_commit}.tar.gz + ${pkgname}.initd + ${pkgname}.confd" +builddir="${srcdir}/${pkgname}-${_commit}/" build() { - cd $builddir + cd ${builddir} go build -o chartsrv main.go } @@ -26,11 +27,11 @@ check() { } package() { - install -Dm755 "$builddir"/$pkgname "$pkgdir"/usr/bin/$pkgname - install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + install -Dm755 ${builddir}/$pkgname ${pkgdir}/usr/bin/${pkgname} + install -Dm755 ${srcdir}/$pkgname.initd ${pkgdir}/etc/init.d/${pkgname} + install -Dm644 ${srcdir}/$pkgname.confd ${pkgdir}/etc/conf.d/${pkgname} } -sha512sums="afaf5b6d49cf7df9c771b7da671c2b783b8b2b0c8ad10c59fc722b3835a33a60a5a4f58c246b8935a7fcafbfcba7b37b04354eb66118f4a384aba1635e9eb1b0 chartsrv.tar.gz +sha512sums="834b4824e3a0d651100d0ee06fa30eab28cf15a151b255a79a9fb9eab0b071212addd8ad25b832ceef316206d598eec4b07606e5335056f56b30ac9dbd4dd68b chartsrv-93505c9a5ede24397fae0cec6ffea0dc77b67993.tar.gz eaa40ace4ca554d015939da4a2fce8c12260d5a4d6741494766bbfc59ba3ccbd2acccfe1097ff4ac07f116758ba3ddd9899960572196513ea4641706cd45608c chartsrv.initd 81d514b4f3773d4a28808cd72f32a8a080be388086919e718bff9128b40c2e491973e9d6cc2d94f2b45a64966cbdcc92a3945556b31904937c443f73a2e1a347 chartsrv.confd"