~sircmpwn/sr.ht-pkgbuilds

ref: 2faa45db0b8d36a62aea5ec7ea713948ed6a5b2d sr.ht-pkgbuilds/lists.sr.ht/PKGBUILD -rw-r--r-- 1.7 KiB
2faa45dbThorben Günther Celery: Update loglevel 8 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'
            '7581e8415a271421030fc112eb5a690752a3ce5e7b72d8c8c8b0e023508a179a'
            'ba90af29b39b40ba8a6e749faf86325498739c4bbb5d2be1032c07e9f7a02937'
            '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
}