~sircmpwn/sr.ht-pkgbuilds

ref: 324949d9341f5315f50b67364f7a99caf3fdcd3c sr.ht-pkgbuilds/lists.sr.ht/PKGBUILD -rw-r--r-- 1.7 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
43
44
45
46
pkgname=lists.sr.ht
pkgver=0.12.6
pkgrel=3
pkgdesc="sr.ht mailing list services"
arch=("any")
license=("AGPL3")
url="https://git.sr.ht/~sircmpwn/lists.sr.ht"
depends=(
	"python-pygit2" "python-srht" "python-celery" "python-aiosmtpd"
	"python-asyncpg" "python-redis" "gunicorn" "python-emailthreads"
)
makedepends=("python-setuptools" "nodejs" "sassc")
optdepends=(
	"redis: dispatching emails for archiving and forwarding"
)
install=lists.sr.ht.install
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"lists.sr.ht.service"
	"lists.sr.ht-lmtp.service"
	"lists.sr.ht-process.service"
	"lists.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('afa8a123eed3c26df77cb8fc7f90ec9f49237a3481259730915a279f73848a20'
            '3bfc68d7945fa1d996fdf2ca202ceebbe5511ca6618f9a123ea1ac61ac1df062'
            'ed8890a9593dc7d3fe59e7b1fc8dd6c510f123ac4c289ac88d8320a395106c65'
            'd83ce315ad1388cc108607233a13796a899b68044f3a594e0a2f4083d78a0a0b'
            'e845fce17a361d19e447a9b253dd7b68fb51b729b51a6c4a6ed94845954e1279'
            '753453b055e613e7c0fb22991ca8d9f588fe1ba705e26f0e8c2504c464f4e5d0')
export PKGVER=$pkgver

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

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