# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sr.ht-nginx
pkgver=0_git20220214
_commit=305e2a56cfa8d755a22cd6d9f31863bd7a5e8ebc
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="
a4bd10d1f53b7b1bedd2d76841f860a0b7f057829e0f351b21d5639b52fdff5253cd25ab661e7f966cdfad08c145246b129510a0578f19b5228a09c837c9ae79 305e2a56cfa8d755a22cd6d9f31863bd7a5e8ebc.tar.gz
"