@@ 1,13 1,14 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sr.ht-nginx
-pkgver=0_git20210805
-_commit=30afc8ce5b99a2d3fb39d4efa3c8dc17674bc5f9
-pkgrel=0
+pkgver=0_git20210830
+_commit=7cd01f56a8141aca77d920e2125f0759ecf559ce
+pkgrel=2
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
"
@@ 19,10 20,18 @@ build() {
}
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="
-aff4fdf5670e4421e8386c708764c0f66a0e411b08d49acd11920520f01926b5d4edb7733ed5ab8c9e4e3c02957a0afb830f5221bf96dcd0b7eb0feea51d62b7 30afc8ce5b99a2d3fb39d4efa3c8dc17674bc5f9.tar.gz
+c37f14f0cefbc2434fb9f9fb8fce72f516313ee498fe63477fb88b1b8260b8167c763ae4f6fd2c52b313036e056185c7cab4dd10fbc0fd95635d570280019374 7cd01f56a8141aca77d920e2125f0759ecf559ce.tar.gz
"