APKBUILD 1.69 KB
Newer Older
1
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
2
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
Leonardo Arena's avatar
Leonardo Arena committed
3
pkgname=umurmur
omni's avatar
omni committed
4
pkgver=0.2.20
5
pkgrel=1
Leonardo Arena's avatar
Leonardo Arena committed
6
pkgdesc="Minimalistic Mumble server primarily targeted to run on routers"
Michał Polański's avatar
Michał Polański committed
7
url="https://umurmur.net/"
Leonardo Arena's avatar
Leonardo Arena committed
8
arch="all"
Michał Polański's avatar
Michał Polański committed
9 10
license="BSD-3-Clause"
options="!check" # no test suite
11
makedepends="libconfig-dev openssl-dev protobuf-c-dev autoconf automake"
12
install="$pkgname.post-install"
Michał Polański's avatar
Michał Polański committed
13
subpackages="$pkgname-openrc"
14 15
pkgusers="umurmur"
pkggroups="umurmur"
Michał Polański's avatar
Michał Polański committed
16
source="$pkgname-$pkgver.tar.gz::https://github.com/umurmur/umurmur/archive/$pkgver.tar.gz
Leonardo Arena's avatar
Leonardo Arena committed
17 18
	$pkgname.initd
	$pkgname.confd
Jakub Jirutka's avatar
Jakub Jirutka committed
19
	$pkgname.conf"
Leonardo Arena's avatar
Leonardo Arena committed
20 21

prepare() {
Michał Polański's avatar
Michał Polański committed
22
	default_prepare
Jakub Jirutka's avatar
Jakub Jirutka committed
23
	autoreconf -fi
Leonardo Arena's avatar
Leonardo Arena committed
24 25 26
}

build() {
27 28 29 30
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Leonardo Arena's avatar
Leonardo Arena committed
31 32
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
33
		--localstatedir=/var \
Michał Polański's avatar
Michał Polański committed
34 35
		--with-ssl=openssl
	make
Leonardo Arena's avatar
Leonardo Arena committed
36 37 38
}

package() {
Michał Polański's avatar
Michał Polański committed
39 40
	make DESTDIR="$pkgdir" install
	install -Dm644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname/umurmurd.conf
41

Michał Polański's avatar
Michał Polański committed
42 43
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
Leonardo Arena's avatar
Leonardo Arena committed
44 45
}

omni's avatar
omni committed
46
sha512sums="0913f5ba84b30fec4ae6a1521c442ff8c48121bbbca5de9082e04e41b36434fadb5f81cb2ea0bd0a8c63f6e541d15eeda3637667d8cc7113d38935ded320cef4  umurmur-0.2.20.tar.gz
47
1c22da6478738b8ac77aecbbf8e41260a957ddffec350020e56b622c70445ebf8dc28feb563b878f2c64132742d8e1e0cbcbd2a50f0c0b29a309ca29598d8c94  umurmur.initd
Michał Polański's avatar
Michał Polański committed
48
ea5d4826d270f174b23ef4101586ffa3c6ba3311bc443595288dc1839f4127f5fa4bf64f9469037a2f947e3ddd22ac1895326db0fdd4122980d3fcaa0536621e  umurmur.confd
49
0a5882dca2daf686716d7b78f916e4506c7b98e3460ccd56aace087dca88b686b659e32b325bf253922cc824049a800b06e5006ea04cc5539c82b63cda5cccea  umurmur.conf"