~dricottone/huttese-apk

ref: 7d0e4e96a309d89a8b6ec524ac2255f3ed48c97a huttese-apk/sr.ht/sr.ht-nginx/APKBUILD -rw-r--r-- 1.1 KiB
7d0e4e96 — Simon Ser gamja: upgrade and use new build system 3 years ago
                                                                                
885467ce Drew DeVault
5b7ce881 Drew DeVault
885467ce Drew DeVault
2451cd31 Drew DeVault
885467ce Drew DeVault
2451cd31 Drew DeVault
885467ce Drew DeVault
0aee864e Drew DeVault
5b7ce881 Drew DeVault
0aee864e Drew DeVault
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
34
35
36
37
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sr.ht-nginx
pkgver=0_git20210831
_commit=081fce4019ecfc762b98944904ec51fe75587f43
pkgrel=0
pkgdesc="sr.ht common nginx files"
url="https://git.sr.ht/~sircmpwn/sr.ht-nginx"
arch="noarch"
license="AGPLv3"
depends="nginx"
replaces="nginx" # To overwrite nginx.conf
source="
	https://git.sr.ht/~sircmpwn/sr.ht-nginx/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"
options="$options !check"

build() {
	true # no-op
}

package() {
	mkdir -p "$pkgdir"/etc/nginx
	install -Dm644 graphql.conf "$pkgdir"/etc/nginx/graphql.conf
	install -Dm644 nginx.conf "$pkgdir"/etc/nginx/nginx.conf
	install -Dm644 port443.conf "$pkgdir"/etc/nginx/port443.conf
	install -Dm644 port80.conf "$pkgdir"/etc/nginx/port80.conf
	install -Dm644 sourcehut.conf "$pkgdir"/etc/nginx/sourcehut.conf
	install -Dm644 web.conf "$pkgdir"/etc/nginx/web.conf

	mkdir -p "$pkgdir"/var/www
	install -Dm644 robots.txt "$pkgdir"/var/www/robots.txt
}

sha512sums="
31cdfb58f9e83772ec9a9328a9a4b9bd170dd8e3029c9ad3297ddbd4a4dc1c58295e4bf2770124fd2e3c290d596e3d2e6e184e0c71be6687f6b3d5fa2242b063  081fce4019ecfc762b98944904ec51fe75587f43.tar.gz
"