55 lines
2.0 KiB
Plaintext
55 lines
2.0 KiB
Plaintext
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
pkgname=hub.sr.ht
|
|
pkgver=0.14.2
|
|
pkgrel=0
|
|
pkgdesc="sr.ht hub service"
|
|
url="https://git.sr.ht/~sircmpwn/hub.sr.ht"
|
|
arch="noarch"
|
|
license="AGPLv3"
|
|
depends="
|
|
py3-srht
|
|
py3-gunicorn
|
|
"
|
|
makedepends="py-setuptools nodejs sassc go"
|
|
subpackages="$pkgname-openrc $pkgname-nginx:_nginx:noarch"
|
|
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
|
|
hub.sr.ht.initd
|
|
hub.sr.ht.confd
|
|
hub.sr.ht.gunicorn.conf.py
|
|
"
|
|
export PKGVER=$pkgver
|
|
options="$options !check"
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir" --optimize=1
|
|
mkdir -p "$pkgdir"/etc/init.d
|
|
install -Dm755 "$srcdir"/hub.sr.ht.initd \
|
|
"$pkgdir"/etc/init.d/hub.sr.ht
|
|
install -Dm644 "$srcdir"/hub.sr.ht.confd \
|
|
"$pkgdir"/etc/conf.d/hub.sr.ht
|
|
install -Dm644 "$srcdir"/hub.sr.ht.gunicorn.conf.py \
|
|
"$pkgdir"/etc/sr.ht/hub.sr.ht.gunicorn.conf.py
|
|
}
|
|
|
|
_nginx() {
|
|
depends="sr.ht-nginx"
|
|
pkgdesc="nginx configuration for $pkgname"
|
|
install -Dm644 "$srcdir/sr.ht-nginx-master/hub.sr.ht.conf" \
|
|
"$subpkgdir"/etc/nginx/http.d/hub.sr.ht.conf
|
|
}
|
|
|
|
sha512sums="
|
|
7c8b949e7ff9e2678b18a3017e780ecbf25939d7d02452e24c1db3fb6939fc7d1cc2abf2562cf6695ba24929250f24ab70f0387617e83720292fe5b9ef66dab5 hub.sr.ht-0.14.2.tar.gz
|
|
917bbc9a493f6aa756af3f3597f9edf2e25227efe30f6ab635f99a7d9f4ecd6e9f36a7f2b9b40cc95b6e584dd62e1a0badb46e4ff9d3c3d5ce959455b15a95b6 sr.ht-nginx-0.14.2.tar.gz
|
|
e82162ed183905bdbc55676624983dbccb5f0a542024f3d88c670c69cf3f19447890ef8e4b3fbfd859ccb58caaa4196bdfad056d99a493fe2c23fddc3d99137d hub.sr.ht.initd
|
|
657499dc280ca355704f704f183ad6097753fef02e5742014370e3f09d0d7c56966d3015022c54dcaad680ebc940c53c9f670b8488fb76e964ba5a89e60fa1aa hub.sr.ht.confd
|
|
21f39ea0981d7773eb512e5ba234022364d0f7ee9b6ca897ce4c51e3b127eb2d9a7a5fbcaa06d14f20b2df2439421d7261f200e3f4f13b45a91e78ba77bc363c hub.sr.ht.gunicorn.conf.py
|
|
"
|