~sircmpwn/sr.ht-pkgbuilds

ref: 324949d9341f5315f50b67364f7a99caf3fdcd3c sr.ht-pkgbuilds/paste.sr.ht/PKGBUILD -rw-r--r-- 1.2 KiB
324949d9Roshless add missing install for hub.sr.ht 9 months ago
                                                                                
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
pkgname=paste.sr.ht
pkgver=0.3.3
pkgrel=1
pkgdesc="sr.ht pastebin services"
arch=("any")
license=("AGPL3")
url="https://git.sr.ht/~sircmpwn/paste.sr.ht"
install=paste.sr.ht.install
depends=(
	"python-srht"
	"python-yaml"
	"gunicorn"
)
optdepends=(
	"python-psycopg2: for PostgreSQL databases"
)
makedepends=("python-setuptools" "nodejs" "sassc")
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"paste.sr.ht.service"
	"paste.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('4110da06608b4268c3521a0943f948dd2ca38a9ad47113bd8df0091c64f8013e'
            '6f99b3bedea1cad4f28658950ecf802c05e38433432f2d1e73ee88864a36d8ec'
            '3c9924fea4bf5086e190e21738e76fe06285ef83ed5bccf00b4db11981a0d5e3'
            'a08895ba853dbca7fc5af3da2f6bfd4284c15f787a5968793a4a53f31f9de817')
export PKGVER=$pkgver

build() {
	cd $pkgbase-$pkgver
	python3 setup.py build
}

package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../paste.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../paste.sr.ht-webhooks.service \
		-t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/paste.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1
}