~sircmpwn/sr.ht-pkgbuilds

ref: 6b8072d77772924006558a1c928f247f5edff9ee sr.ht-pkgbuilds/man.sr.ht/PKGBUILD -rw-r--r-- 975 bytes
6b8072d7Eli Schwartz python-zxcvbn: remove as it is overridden in [community] 10 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
pkgname=man.sr.ht
pkgver=0.15.6
pkgrel=2
pkgdesc="sr.ht wiki services"
arch=("any")
license=("AGPL3")
url="https://git.sr.ht/~sircmpwn/man.sr.ht"
install=man.sr.ht.install
depends=("python-srht" "python-pygit2" "gunicorn")
makedepends=("python-setuptools" "nodejs" "sassc")
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"man.sr.ht.service"
	"sysusers.conf"
)
sha256sums=('d771fd6a0b4b6fbae519dfc4de0456c7dfc1e843a331847aafa4cf3923d5d6f5'
            '47130a2897bca5a6491c0cdcd4443a052eb3f1f83484332b1775ef5f991b9ea0'
            '8dbd5ed13adcd3fe4f0e31e3b6a7f6c7b116cbd63ce1c430ddcdaec4f7491dee')
export PKGVER=$pkgver

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

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