~dricottone/huttese-apk

ref: ab4c587b8d7c3a9bf02794721be6f5def737e0d1 huttese-apk/sr.ht/paste.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
ab4c587b — Drew DeVault Update build.yml with Alpine version 5 years ago
                                                                                
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
c22847d0 Drew DeVault
fc48e48f Drew DeVault
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
c22847d0 Drew DeVault
ec4d2192 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.3.2
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.initd
	paste.sr.ht.confd
"
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.initd \
		"$pkgdir"/etc/init.d/paste.sr.ht
	install -Dm644 "$srcdir"/paste.sr.ht.confd \
		"$pkgdir"/etc/confd.d/paste.sr.ht
}

sha512sums="b5048000384533ea919a75985c81c6c4244fbb025b00f96523e54ab71a470d1c109e7d120e9e2214edd196d6b1f3b319f3974b58b734c61eb175727e5bf04662  paste.sr.ht-0.3.2.tar.gz
d212f4e96a15b7db6f676a57ae9f8956456d3ec7d61e8cc2cfdcca30890cceaf1f38f87772f97143620ef9ec749fa54c3e0e1029e2a74b9dba95f1a571e0658b  paste.sr.ht.initd
5ad67f8d07683186fd8b25e4075f6b83754bfd1a6072a494641601a73941b32be018335539cf34d15eee2200f7067fb4cf6f0a064cadc34d0c0b834b1a938d70  paste.sr.ht.confd"