~dricottone/huttese-apk

ref: f908d8dcbda662e653ac8e6341ac643c131e7746 huttese-apk/sr.ht/dispatch.sr.ht/APKBUILD -rw-r--r-- 1.8 KiB
f908d8dc — Drew DeVault py3-stripe: update to 2.55.2 3 years ago
                                                                                
f90215b9 Drew DeVault
68c0405c Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
68c0405c Drew DeVault
f90215b9 Drew DeVault
68c0405c Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
68c0405c Drew DeVault
404b2a00 Drew DeVault
68c0405c Drew DeVault
19ae9ecb Drew DeVault
b354aec1 Drew DeVault
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
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=dispatch.sr.ht
pkgver=0.14.8
pkgrel=0
pkgdesc="sr.ht dispatch service"
url="https://git.sr.ht/~sircmpwn/dispatch.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-gunicorn
	py3-pygithub
	py3-srht
	py3-yaml
"
makedepends="py-setuptools nodejs sassc"
subpackages="$pkgname-openrc $pkgname-nginx:_nginx"
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
	dispatch.sr.ht.confd
	dispatch.sr.ht.initd
"
builddir="$srcdir/$pkgname-$pkgver"
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
	install -Dm755 "$srcdir"/dispatch.sr.ht.initd \
		"$pkgdir"/etc/init.d/dispatch.sr.ht
	install -Dm644 "$srcdir"/dispatch.sr.ht.confd \
		"$pkgdir"/etc/conf.d/dispatch.sr.ht
}

_nginx() {
	depends="sr.ht-nginx"
	pkgdesc="nginx configuration for $pkgname"
	install -Dm644 "$srcdir/sr.ht-nginx-master/dispatch.sr.ht.conf" \
		"$subpkgdir"/etc/nginx/conf.d/dispatch.sr.ht.conf
}

sha512sums="ee369df1f9bd8aa169f5f6bdbae293f4e92b00f28906839f26166bd1fe7dc47a57fff81e61e747c206cbb6d1eaa7256971e6bce59802d01db4d90ae08c0c6380  dispatch.sr.ht-0.14.8.tar.gz
ef662f839e59bba208210737bf193b230e8e6accf1cda343f91d013b7922f5923f8468d0f18e16376cf6cb6b6c4f2e6a361f7f45fb1da9cc6e42ad045b0e25fc  sr.ht-nginx-0.14.8.tar.gz
2cb15282905d56d6b17f5aed032b15d98da64c9ec315db4650e0729398a9ea4d9704a57e3b7f55e1c5381914f7fe5e85b58e4e88e9e68fcab89ef1763e377278  dispatch.sr.ht.confd
9e96f369c042faba2130e20861e3f6e458c0d986961bff284040f76832012c488836aef870e4e7ba238f8443659953a0edfc0f1c10878ca73d27fe3756766955  dispatch.sr.ht.initd"