aboutsummaryrefslogtreecommitdiffstats
path: root/main/umurmur/APKBUILD
blob: 9551dcc36bf4d84b807ee2e014781a5d3204e550 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=umurmur
pkgver=0.2.14
pkgrel=3
pkgdesc="Minimalistic Mumble server primarily targeted to run on routers"
url="https://code.google.com/p/umurmur/"
arch="all"
license="Custom"
depends=
depends_dev=
makedepends="$depends_dev libconfig-dev polarssl-dev protobuf-c-dev autoconf
             automake libtool"
install="$pkgname.post-install $pkgname.post-deinstall"
subpackages="$pkgname-doc"
pkgusers="umurmur"
pkggroups="umurmur"
source="https://umurmur.googlecode.com/files/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	$pkgname.conf
	0001-Update-to-use-Protobuf-C-1.0.0.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/0001-Update-to-use-Protobuf-C-1.0.0.patch
	autoreconf -fi
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-ssl=polarssl
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/umurmurd
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/umurmurd
	install -m644 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/umurmur/umurmurd.conf
	mkdir -p "$pkgdir"/usr/share/doc/umurmur
	install -m644 -D "$_builddir"/AUTHORS "$pkgdir"/usr/share/doc/umurmur || return 1
	install -m644 -D "$_builddir"/ChangeLog "$pkgdir"/usr/share/doc/umurmur || return 1
	install -m644 -D "$_builddir"/LICENSE "$pkgdir"/usr/share/doc/umurmur || return 1
	install -m644 -D "$_builddir"/README.md "$pkgdir"/usr/share/doc/umurmur || return 1
}

md5sums="e22121b4b91f4c9de43f858f6defa0b0  umurmur-0.2.14.tar.gz
62e9247757fe9cc2b915a64ee09f1a24  umurmur.initd
aa4ea345abedc55ef4f0a2be1cbd7168  umurmur.confd
3239959c53f9df8beeb9c1d1ba4c2cf6  umurmur.conf
7e5c345698468eed5763d869f86d731d  0001-Update-to-use-Protobuf-C-1.0.0.patch"
sha256sums="4398cfc121b754277b96760eb3dd1020b5e5f497eacc16b266ea447eeacf68e9  umurmur-0.2.14.tar.gz
e7a1194703aed5002fa153c3edb7720cc868cd1703fbdf6cbb5aef71d83fe50c  umurmur.initd
e994d68b860923acaa22cce1864d781fa8299203ba64121cc871bbfee4febad2  umurmur.confd
6d34c8915d7d2cbd21cdb9d3ff1f9227c48d458046481c785a260e1faeae233f  umurmur.conf
987469d2cd905f38b3a749dd6f999cc9641666274c6206907b3244dc7a4e8a25  0001-Update-to-use-Protobuf-C-1.0.0.patch"
sha512sums="88bf65119cfc7ae818c6ad0734ef2e60600826522d8133699d5f589a93b5d534183761b9aa0239ab9d3d3766b48e64fd0859bf74a280b11078e6c38da76d6835  umurmur-0.2.14.tar.gz
604d2b772ab0befb087de9e1b69963846946a5285e066ed0aba0f87ddf08d60b2bbb7ee793ceffbdda0a003a344a81654c9ff04278ffa78f292deddf3ce06068  umurmur.initd
b6412621522c9148d5eaced25ff4fb023b0c84206a969120e261b4a89386c46961f1c485435a1763935f538c04c03f7b4b83d45779f1ba796b627cdb0d2436a0  umurmur.confd
563573c405013bdf9d76003d68eb9619064659dc1e1b8b1fde24c0e587a807202bf62efe7f227cc95ff8b6db68a2ace3f0f359cef74c1bf5f1582815dd623501  umurmur.conf
4c01b352045935d5076e50c595a401a9032580b70d098b013b71030d482dc3e39177f49db4db7dc98cf5b09132b51d4a56731d70b82266d542eb72d4060d911a  0001-Update-to-use-Protobuf-C-1.0.0.patch"