~sircmpwn/sr.ht-pkgbuilds

ref: 324949d9341f5315f50b67364f7a99caf3fdcd3c sr.ht-pkgbuilds/hg.sr.ht/PKGBUILD -rw-r--r-- 1.4 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
pkgname=hg.sr.ht
pkgver=0.16.0
pkgrel=1
pkgdesc="sr.ht mercurial services"
arch=("any")
license=("AGPL3")
url="https://hg.sr.ht/~sircmpwn/hg.sr.ht"
depends=("python-srht" "python-hglib" "python-scmsrht")
makedepends=("python-setuptools" "nodejs" "sassc")
optdepends=(
	"builds.sr.ht: builds.sr.ht integration"
	"cronie: for hg.sr.ht cronjob (recommended)"
)
install=hg.sr.ht.install
source=(
	"$pkgname-$pkgver.tar.gz::https://hg.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"hg.sr.ht.service"
	"hg.sr.ht-webhooks.service"
	"sysusers.conf"
	"tmpfiles.conf"
)
sha256sums=('586652021d06e08ca9989ed9e518d0a112d2f6340c9f5e3ee130ff7762d4f307'
            'c962cc45d71c364816113121b2f8e2d7207653df5ee57a78523241a6652b70ea'
            '31051ffb5a86487aff02b9026f7d34b68b462328a43d37ea19b652b0cca3f406'
            'f757c1c92db1d6000cfc7887ed69fc8e350e7b64c1cff3539318e69e6e1425df'
            '985698a1d24140d15016a36fd1ebe5b41aea466190f4d550e70d281ee0090dbb')
export PKGVER=$pkgver

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

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