blob: a9f4de4ce158fa843d82fb22b30d117409232e84 (
plain)
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
47
48
49
50
51
52
53
54
|
# Maintainer: Sir-Photch <aur@liebender.dev>
pkgname=gmlgcd
pkgver=2.0
pkgrel=2
pkgdesc='The gemlog comment daemon'
arch=('x86_64' 'aarch64')
url='https://sr.ht/~chrs/gmlgcd'
license=('AGPL-3.0-or-later')
makedepends=('meson' 'scdoc')
checkdepends=('fish')
depends=('libevent' 'libbsd' 'confuse')
backup=('etc/gmlgcd.conf' 'etc/gmlgcd.conf.d/help-template.gmi')
source=(
"$pkgname-$pkgver.tar.gz::https://git.sr.ht/~chrs/$pkgname/archive/$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.asc::https://git.sr.ht/~chrs/$pkgname/archive/$pkgver.tar.gz.asc"
"sysusers-gmlgcd.conf"
)
validpgpkeys=(10F1CC925057D456798EBF9C1B3EB6FE2D338B4A)
sha256sums=('a85e3560d92652965968ecb70f27282aa37d5147d4d9a919fd0cd1d3467ce7e7'
'SKIP'
'e071442fbd90cf80ce528344d4849f6372c8e75d236f3dca9a56c03f3586d92d')
prepare() {
sed -i 's|/usr/local|/usr|g' "$srcdir/$pkgname-$pkgver/$pkgname.service"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
meson setup builddir --buildtype release --prefix=/usr
meson compile -C builddir
}
check() {
cd "$srcdir/$pkgname-$pkgver"
meson test -C builddir
}
package() {
cd "$srcdir/$pkgname-$pkgver"
meson install -C builddir --destdir "$pkgdir"
install -Dm 644 gmlgcd.service -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/sysusers-gmlgcd.conf" "$pkgdir/usr/lib/sysusers.d/gmlgcd.conf"
install -Dm 644 gmlgcd.conf -t "$pkgdir/etc"
install -Dm 644 help-template.gmi -t "$pkgdir/etc/gmlgcd.conf.d"
install -Dm 644 template.gmi README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}
|