ctucx.git: alpine-pkgs

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

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
# Contributor: Leah (ctucx) <leah@ctu.cx>
# Maintainer: Leah (ctucx) <leah@ctu.cx>
pkgname=oeffi-web
pkgver=0.0.1
pkgrel=26
pkgdesc="fast and simple tripplanner for the web"
url="https://cgit.ctu.cx/oeffi-web"
arch="all"
license="MIT"
depends="openssl"
makedepends="nim nimble"
options="!check"
install="$pkgname.pre-install"
subpackages="${pkgname}-openrc"
_commit="47d021f1ae815a71325d8ee73da72383973bd571"
source="${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/${pkgname}/snapshot/${pkgname}-${_commit}.tar.gz
        ${pkgname}.initd"
builddir="${srcdir}/${pkgname}-${_commit}/"

build() {
	cd ${builddir}
	nimble build -y -d:release
}

package() {
	install -Dm755 ${builddir}/oeffi ${pkgdir}/usr/bin/${pkgname}
	install -Dm755 ${srcdir}/$pkgname.initd ${pkgdir}/etc/init.d/${pkgname}
	mkdir -p ${pkgdir}/usr/share/oeffi-web
	cp -r ${builddir}/src/assets/* ${pkgdir}/usr/share/oeffi-web
}

sha512sums="b84f533f5feaf71ad11920009736e7f4bdd7f0839983f9aca6035c6c4cf25a0092c1c2b1df286e2eff3ed3673f62c31046bcfd5d24e545d320e894fb3e9d4a2a  oeffi-web-47d021f1ae815a71325d8ee73da72383973bd571.tar.gz
a7c5f4509c3fcf52ff514604a42030fbab230db6ca7903e3f74b523331489dfa5401631952bb8705aa281e084bcd61f6cc5fc79b82bc422ebdc487901d44e426  oeffi-web.initd"