apkbuilds @ e73a50263de75a541e481c3f5949ed0f8eaa403a

 1# Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me>
 2pkgname=cerrado
 3pkgver=v0.0.13
 4pkgrel=0
 5pkgdesc="Self host single user forge"
 6url="https://beta.gabrielgio.me/cerrado/"
 7arch="x86_64"
 8license="AGPL"
 9makedepends="
10	go 
11	sassc
12	qtc
13"
14install="$pkgname.pre-install"
15subpackages="
16    $pkgname-openrc
17    $pkgname-caddy:_caddy:noarch
18"
19source="
20    $pkgname-$pkgver.tar.gz::https://beta.gabrielgio.me/$pkgname/archive/$pkgver.tar.gz
21    $pkgname.scfg
22    $pkgname.confd
23    $pkgname.initd
24    $pkgname.caddyfile
25"
26builddir="$srcdir/$pkgname-$pkgver"
27
28build() {
29    make SLUG=$pkgver
30}
31
32prepare() {
33	default_prepare
34
35	git clone --depth=1 -b v5.3.3 \
36		https://github.com/twbs/bootstrap.git \
37		scss/bootstrap
38}
39
40check() {
41	make test
42}
43
44package() {
45	install -Dm755 bin/cerrado "$pkgdir"/usr/bin/cerrado
46
47	install -Dm644 "$srcdir"/"$pkgname".scfg "$pkgdir"/etc/"$pkgname".scfg
48	install -Dm755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/cerrado
49	install -Dm644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/cerrado
50}
51
52
53_caddy() {
54	depends="caddy jnfilter"
55	pkgdesc="caddy configuration for $pkgname"
56
57    mkdir -p "$subpkgdir"/etc/caddy/sites/
58
59	install -Dm644 "$srcdir"/"$package"/"$pkgname".caddyfile \
60		"$subpkgdir"/etc/caddy/sites/"$pkgname".caddyfile
61}
62
63sha512sums="
64dbeada9afff6a3e6892b49e174983d25f4df66604ea1907b309b475aa9d1b64c968d64e7f531a2c31d917747754de386090df1b02a4c2bd130f9d44472cc7b0b  cerrado-v0.0.13.tar.gz
6549f984748e4b6c169de91f746562671c56519c4ce691fee600cbbe5bad2f9eba8873dedc7a454039537dcc9efc2666344d76676a4417bed6efefdb9e8774c035  cerrado.scfg
6668a44e420c72d0eace0ccd50e7d883c9e155f0ede4a399bf7e257a92a17a983b2bfaded7aa390bb3043301d32092cbb3609070578da762422bf78fae2e9c1adf  cerrado.confd
67d4ab74e8e9382e4fdf9ce54afc439ba733044dacdf3ac681afe09f01e148ff958eabe6a42efe4362abf5d540514e6e2b5aae135ccf19e8f0889c29ebd5725a71  cerrado.initd
68d17acd77113577b4ef51177dca03096a2f3a1614d587c413aa54087b1c97a996d715211e2e673d8dbdeee56e2d67c0aa48858664d4780d959db1e28eb2502f24  cerrado.caddyfile
69"