# Maintainer: Gabriel A. Giovanini pkgname=cerrado pkgver=v0.0.17 pkgrel=0 pkgdesc="Self host single user forge" url="https://beta.gabrielgio.me/cerrado/" arch="x86_64" license="AGPL" makedepends=" go sassc qtc " install="$pkgname.pre-install" subpackages=" $pkgname-openrc $pkgname-caddy:_caddy:noarch " source=" $pkgname-$pkgver.tar.gz::https://beta.gabrielgio.me/$pkgname/archive/$pkgver.tar.gz $pkgname.scfg $pkgname.confd $pkgname.initd $pkgname.caddyfile " builddir="$srcdir/$pkgname-$pkgver" build() { make GIT_COMMIT=$pkgver } prepare() { default_prepare git clone --depth=1 -b v5.3.3 \ https://github.com/twbs/bootstrap.git \ scss/bootstrap } check() { make test } package() { install -Dm755 cerrado "$pkgdir"/usr/bin/cerrado install -Dm644 "$srcdir"/"$pkgname".scfg "$pkgdir"/etc/"$pkgname".scfg install -Dm755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/cerrado install -Dm644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/cerrado } _caddy() { depends="caddy jnfilter" pkgdesc="caddy configuration for $pkgname" mkdir -p "$subpkgdir"/etc/caddy/sites/ install -Dm644 "$srcdir"/"$package"/"$pkgname".caddyfile \ "$subpkgdir"/etc/caddy/sites/"$pkgname".caddyfile } sha512sums=" f1629a0b9b1a07e3ff683300f51e53b89d13baa03d67a1b1591f9c01569665278e56dca5f6898e61ee6b089930c0d0ab5ca7ebf9a910e42771b9e5b213b24c9b cerrado-v0.0.17.tar.gz 49f984748e4b6c169de91f746562671c56519c4ce691fee600cbbe5bad2f9eba8873dedc7a454039537dcc9efc2666344d76676a4417bed6efefdb9e8774c035 cerrado.scfg 68a44e420c72d0eace0ccd50e7d883c9e155f0ede4a399bf7e257a92a17a983b2bfaded7aa390bb3043301d32092cbb3609070578da762422bf78fae2e9c1adf cerrado.confd d4ab74e8e9382e4fdf9ce54afc439ba733044dacdf3ac681afe09f01e148ff958eabe6a42efe4362abf5d540514e6e2b5aae135ccf19e8f0889c29ebd5725a71 cerrado.initd d17acd77113577b4ef51177dca03096a2f3a1614d587c413aa54087b1c97a996d715211e2e673d8dbdeee56e2d67c0aa48858664d4780d959db1e28eb2502f24 cerrado.caddyfile "