~dricottone/huttese-apk

ref: 78b5be0f81a4b4e762645f71592fb9e9ea53acb7 huttese-apk/sr.ht/paste.sr.ht/APKBUILD -rw-r--r-- 1.1 KiB
78b5be0f — Drew DeVault Update paste.sr.ht post-upgrade 5 years ago
                                                                                
c22847d0 Drew DeVault
fc48e48f Drew DeVault
c22847d0 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.1.1
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
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	paste.sr.ht.init
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm755 "$srcdir"/paste.sr.ht.init "$pkgdir"/etc/init.d/paste.sr.ht
}

sha512sums="fdd7826c281e799c1e659821aeedb0837863af7188c532ff870a854a96ede1945aae62b4635687fb3f041f33850e9b87423a077ef33720ef3aae9c82516cc854  paste.sr.ht-0.1.1.tar.gz
36c2280f76af770ac963916fadcdb9a01976ceb0215f324f14fc56207bf5d07305059b7a6ff07c16886f9139591a36399f5bebb1670ffe719519a30c1c9e5177  paste.sr.ht.init"