apkbuilds @ 506249ae1f0e2819b3decf096186294bed7a1fd4

 1# Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me>
 2pkgname=cerrado
 3pkgver=v0.0.2
 4pkgrel=0
 5pkgdesc="Self host single user forge"
 6url="https://git.gabrielgio.me/apkbuilds"
 7arch="x86_64"
 8license="AGPL"
 9makedepends="
10	go 
11	sassc
12	qtc
13"
14install="$pkgname.pre-install"
15subpackages="$pkgname-openrc"
16source="
17    $pkgname-$pkgver.tar.gz::https://git.gabrielgio.me/$pkgname/snapshot/$pkgname-$pkgver.tar.gz
18	$pkgname.scfg
19	$pkgname.confd
20	$pkgname.initd
21"
22builddir="$srcdir/$pkgname-$pkgver"
23
24build() {
25    make
26}
27
28prepare() {
29	default_prepare
30
31	git clone --depth=1 -b v5.3.3 \
32		https://github.com/twbs/bootstrap.git \
33		scss/bootstrap
34}
35
36check() {
37	make test
38}
39
40package() {
41	install -Dm755 bin/cerrado "$pkgdir"/usr/bin/cerrado
42
43	install -Dm644 "$srcdir"/"$pkgname".scfg "$pkgdir"/etc/"$pkgname".scfg
44	install -Dm755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/cerrado
45	install -Dm644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/cerrado
46}
47
48sha512sums="
496d227f0f548e21d58d23f333ad549f3afec0d66a8700caefd35de1e15e1748e2b537925566bbeadb22f66608c847ff2845b40dd22be5d9ec5bc5104984a72dd2  cerrado-v0.0.2.tar.gz
50836ffc390b513b8da83c3ab992a485cd58a665149bffe7243cb34a1d137318f39df6b1b3c7c5e27211e111dc46af93bf357a92b84b53ce093d2db67695c3128f  cerrado.scfg
5168a44e420c72d0eace0ccd50e7d883c9e155f0ede4a399bf7e257a92a17a983b2bfaded7aa390bb3043301d32092cbb3609070578da762422bf78fae2e9c1adf  cerrado.confd
52fb04232b187bad5522e93ee371dd0c86b99c468d81a78c5e397279501d91cc96f4a44cbd6156312a09f185a1780974b97a17fce257d445a0abbfcd9cac9f11f0  cerrado.initd
53"