@@ 1,6 1,6 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=meta.sr.ht
-pkgver=0.45.0
+pkgver=0.46.5
pkgrel=0
pkgdesc="sr.ht account service"
url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
@@ 19,9 19,11 @@ depends="
redis
"
makedepends="py-setuptools nodejs sassc go"
-subpackages="$pkgname-openrc $pkgname-billing:_billing"
+subpackages="$pkgname-openrc $pkgname-billing:_billing $pkgname-nginx:_nginx"
+# XXX: Is this sr.ht-nginx URL acceptable? I'm not sure how to version it
source="
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
+ sr.ht-nginx-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/sr.ht-nginx/archive/master.tar.gz
meta.sr.ht.initd
meta.sr.ht.confd
meta.sr.ht-api.initd
@@ 66,7 68,13 @@ _billing() {
touch "$subpkgdir"/usr/lib/python3.8/site-packages/metasrht/.billing
}
-sha512sums="8026f78c2c762e29f9dab56b476453ecfa10b1cf234cca5fd83015acd65a8fe8f5cc3e0ba457a34501f553c0e804caabb3a4698b85e61c7aa239d6f634a82b3c meta.sr.ht-0.45.0.tar.gz
+_nginx() {
+ install -Dm644 "$srcdir/sr.ht-nginx-master/meta.sr.ht.conf" \
+ "$subpkgdir"/etc/nginx/conf.d/meta.sr.ht.conf
+}
+
+sha512sums="52f5b3e8d563ee6b3ae677ee5fc0b95e54d6e65b275c40215412482299db35bf3ab57c1b389ec4add8603782b5461d476f10a36944aef3e8b0b13b943a9d37dd meta.sr.ht-0.46.5.tar.gz
+ef662f839e59bba208210737bf193b230e8e6accf1cda343f91d013b7922f5923f8468d0f18e16376cf6cb6b6c4f2e6a361f7f45fb1da9cc6e42ad045b0e25fc sr.ht-nginx-0.46.5.tar.gz
c1782e12caaeb11db5eab299dbee1510ee1a697840c5b5ecd46aec23f7a16acc6e60fa0b7959a1cbcbc2614183b4e988f9eb905da475e418fd4b13fd53c71e2a meta.sr.ht.initd
7e29f31839febf557d484f34de800e89be39d7a288cc5ea0b4d7fbdf13a722564d3795fdf0da53c5e2f9fb79f3e9b57508b569aa99762e35c4f9ac50f7dff59e meta.sr.ht.confd
8377026251395fa74980a6733a6715c5dcfa6b893ad846d556479d3170605ba7cbe5dcc1c482f90a20e0b6332732cba9480d198dfcc9d73d2d6e338e5276bc65 meta.sr.ht-api.initd