~dricottone/huttese-apk

ref: 08f98cb1de51573e87cfbc29bdfb8a63cd2cefe1 huttese-apk/sr.ht/paste.sr.ht/APKBUILD -rw-r--r-- 1.7 KiB
08f98cb1 — Drew DeVault pages.sr.ht: upgrade to 0.4.4 3 years ago
                                                                                
c22847d0 Drew DeVault
d19d6aac Drew DeVault
4a383dc3 Drew DeVault
c22847d0 Drew DeVault
534bdde9 Drew DeVault
c22847d0 Drew DeVault
d19d6aac Drew DeVault
c22847d0 Drew DeVault
d19d6aac Drew DeVault
ec4d2192 Drew DeVault
c22847d0 Drew DeVault
fc48e48f Drew DeVault
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
2dc731f6 Drew DeVault
c22847d0 Drew DeVault
d19d6aac Drew DeVault
1dc3fcce Drew DeVault
d19d6aac Drew DeVault
5252462d Drew DeVault
d19d6aac Drew DeVault
4a383dc3 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.11.0
pkgrel=0
pkgdesc="sr.ht paste service"
url="https://git.sr.ht/~sircmpwn/paste.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-gunicorn
	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
	paste.sr.ht.initd
	paste.sr.ht.confd
"
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"/paste.sr.ht.initd \
		"$pkgdir"/etc/init.d/paste.sr.ht
	install -Dm644 "$srcdir"/paste.sr.ht.confd \
		"$pkgdir"/etc/conf.d/paste.sr.ht
}

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

sha512sums="4a401f4ca9a4e43e2dae4925207295e2dd5031a7e2c4773998ea5fd31052f3c53d28fde30610f67d1da6c1906067fae72542b458bf48b57d647da3fb8e39e255  paste.sr.ht-0.11.0.tar.gz
ef662f839e59bba208210737bf193b230e8e6accf1cda343f91d013b7922f5923f8468d0f18e16376cf6cb6b6c4f2e6a361f7f45fb1da9cc6e42ad045b0e25fc  sr.ht-nginx-0.11.0.tar.gz
ecbbfe19bbb60bb7724210bb38601dcf64cbd24056fb59d22ac4539082b6e30ac4d80b59d1e3ba58ac232df291304746b6deb49836c0a329233c3531baa33bda  paste.sr.ht.initd
8b4f89e5d8fd96b6e898f81c7d5f516715285a4cb871a6bb31bcea059eb40aff5019039a973815aacd22eb9957bb02b2835a8e9c9aac3ab83649145c6636a388  paste.sr.ht.confd"