aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gmid/APKBUILD
blob: 882c28ce7f52fb4584fd5385dd59aaeb7ef17114 (plain) (blame)
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
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=gmid
pkgver=1.8.6
pkgrel=0
pkgdesc="Fast, small, and secure Gemini server"
url="https://www.omarpolo.com/pages/gmid.html"
arch="all !s390x" # test_unknown_host failed
license="ISC GPL-2.0-only"
makedepends="
	bison
	flex
	libbsd-dev
	libevent-dev
	libretls-dev
	openssl-dev
	"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc $pkgname-doc"
source="$pkgname-$pkgver-nyaa.tar.gz::https://github.com/omar-polo/gmid/archive/$pkgver/gmid-$pkgver.tar.gz
	$pkgname.confd
	$pkgname.initd
	$pkgname.conf
	"

build() {
	# Not a gnuautoconf, just a shell script
	./configure DESTDIR="$pkgdir" PREFIX=/usr
	make
}

check() {
	make regress
}

package() {
	make DESTDIR="$pkgdir" BINDIR=/usr/bin MANDIR=/usr/share/man install
	install -Dm755 contrib/gencert contrib/renew-certs -t "$pkgdir"/usr/bin
	install -Dm644 "$srcdir"/gmid.confd "$pkgdir"/etc/conf.d/gmid
	install -Dm755 "$srcdir"/gmid.initd "$pkgdir"/etc/init.d/gmid
	install -Dm644 "$srcdir"/gmid.conf "$pkgdir"/etc/gmid.conf
}

sha512sums="
bc084dff0441d0007564b07dc9cd6c25dcebd3668d77677bd37079f642868da9d1eb798ec72f6b9b37c2d1441daa70cef34641e5d8e9d9432fc923353db25f29  gmid-1.8.6-nyaa.tar.gz
b05d3685b66547d171a8feeb47518a9e27226a709a0a4d5a77e2cd51d7026ef4d3e0fc9e00a53e9fa58908b717df0bc0954452ab44d2158c949cdfec10b8cba5  gmid.confd
9d5c2fc00f08ab4fe187bfbd09d386b9daab39b7c984b0a2e6043ce0a66baf9b8a3d6609f8c4c41ed97e1e7161511ab7a7edea0e477bfce5eab10fcf10df27ba  gmid.initd
9ebbac15a6e3b34f70a4bbf1a1c4a70f8e6b733ce3b838829fbcc995cfc6681f216f80a8ddca526c60cdc9b9a16de071e5f93faa31b42be65d707ad52897730b  gmid.conf
"