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_git20210830
_commit=cb3972376cc362cde6a1dbd76c4315e35847328f
pkgrel=4
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="
96e6fced905fac308390c7db1d7929a09954dc4d30746d5d88452b482975c5d397ab20db78d47eb313d32ee2973e454b7cdd119dab066290cefd5de533f93701 cb3972376cc362cde6a1dbd76c4315e35847328f.tar.gz
"