apkbuilds @ 049e8ceaf5c71dbc79adb8da75e94f807b18799d

 1# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
 2pkgname=tres
 3pkgver=0.1.0
 4pkgrel=1
 5pkgdesc="Simple rule of tree"
 6url="https://git.sr.ht/~gabrielgio/tres"
 7arch="noarch"
 8license="MIT"
 9options="!check" # this can't be tested
10builddir="$srcdir/$pkgname-$pkgver/"
11subpackages="$pkgname-nginx:_nginx:noarch"
12
13source="
14    https://artifacts.gabrielgio.me/archive/$pkgname/$pkgname-$pkgver.tar.gz
15    "$pkgname".nginx.conf
16"
17
18build() {
19    echo "skipping build"
20}
21
22_nginx() {
23	depends="nginx tres"
24	pkgdesc="nginx configuration for $pkgname"
25	install -Dm644 "$srcdir"/"$package"/"$pkgname".nginx.conf \
26		"$subpkgdir"/etc/nginx/http.d/"$pkgname".nginx.conf
27}
28
29package() {
30    mkdir -p "$pkgdir"/usr/share/webapps/"$pkgname"
31    cp -dr index.html "$pkgdir"/usr/share/webapps/"$pkgname"
32}
33
34sha512sums="
35c8a10539b56026804843c62ff423ad5cc596fd49a04be4642f6319f2110679388554d0e45ea1928d7d2b8791e46b49d3d3a8d43c9c9d79d5ca96af5eea6ead64  tres-0.1.0.tar.gz
368dcf6312a400ce876d09bf2e050f50151c6a8f56bc8d7157e2769274ea472831601a7a2c9795d3eba64fe33ca0eaf723681e7ec3944b8ba61fde8df8a067cba0  tres.nginx.conf
37"