diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 11:00:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 11:00:17 +0000 |
commit | 737eb7d45e3bb61e18acf818809160c6b253b022 (patch) | |
tree | 3b4d273b6b4699d3522d79d16457f86f9e1f2355 /main/mumble/APKBUILD | |
parent | 25cf80b9cfa7fcef67071ceac8298ef97994b772 (diff) | |
download | aports-737eb7d45e3bb61e18acf818809160c6b253b022.tar.bz2 aports-737eb7d45e3bb61e18acf818809160c6b253b022.tar.xz |
main/mumble: move from testing
Diffstat (limited to 'main/mumble/APKBUILD')
-rw-r--r-- | main/mumble/APKBUILD | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/main/mumble/APKBUILD b/main/mumble/APKBUILD new file mode 100644 index 0000000000..cf8af32811 --- /dev/null +++ b/main/mumble/APKBUILD @@ -0,0 +1,87 @@ +# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr> +# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr> +pkgname=mumble +pkgver=1.2.8 +pkgrel=3 +pkgdesc="Mumble is an open source, low-latency, high quality voice chat software primarily intended for use while gaming" +url="http://mumble.sourceforge.net/" +arch="all" +license="BSD" +depends="qt-sqlite" +depends_dev="qt-dev libsndfile-dev boost-dev avahi-dev protobuf-dev libxi-dev + speex-dev libcap-dev" +makedepends="$depends_dev" +install="murmur.pre-install" +pkgusers="murmur" +pkggroups="murmur" +subpackages="$pkgname-doc murmur murmur-doc:murmur_doc" +source="http://downloads.sourceforge.net/mumble/$pkgname-$pkgver.tar.gz + murmur.initd + " + +_builddir=$srcdir/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + qmake -recursive main.pro CONFIG+="no-speechd no-g15 no-update no-ice bundled-celt no-bundled-speex" + make release +} + +package() { + cd "$_builddir" + + install -m755 -D ./release/mumble ${pkgdir}/usr/bin/mumble + install -m755 -D ./release/libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so.${pkgver} + ln -s libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so + ln -s libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so.1 + ln -s libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so.1.2 + install -m755 -D ./release/plugins/liblink.so ${pkgdir}/usr/lib/mumble/liblink.so + install -m755 -D ./release/plugins/libmanual.so ${pkgdir}/usr/lib/mumble/libmanual.so + install -m755 -D ./release/libcelt* ${pkgdir}/usr/lib/mumble/ + install -m755 -d "${pkgdir}/usr/share/man/man1/" + install -m644 ./man/${pkgname}.1 "${pkgdir}/usr/share/man/man1/" + install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +murmur() { + pkgdesc="Murmur is the server component of Mumble" + + cd "$_builddir" + + install -o murmur -g murmur -dm755 ${subpkgdir}/var/lib/murmur + install -Dm755 ./release/murmurd ${subpkgdir}/usr/bin/murmurd + install -Dm644 ./scripts/murmur.ini ${subpkgdir}/etc/murmur.ini + sed 's/^database=$/database=\/var\/lib\/murmur\/murmur.sqlite/;\ + s/^#uname=$/uname=murmur/;\ + s/^#logfile=murmur.log$/logfile=\/var\/log\/murmur.log/;\ + s/^#pidfile=$/pidfile=\/var\/run\/murmur\/murmur.pid/' -i ${subpkgdir}/etc/murmur.ini + install -Dm644 ./scripts/murmur.conf ${subpkgdir}/etc/dbus-1/system.d/murmurd.conf + sed "s/mumble-server/murmur/" -i ${subpkgdir}/etc/dbus-1/system.d/murmurd.conf + install -D -m755 ${srcdir}/murmur.initd "${subpkgdir}"/etc/init.d/murmur +} + +murmur_doc() { + pkgdesc="Murmur is the server component of Mumble" + arch="noarch" + + cd "$_builddir" + + install -Dm644 ./man/murmurd.1 ${subpkgdir}/usr/share/man/man1/murmurd.1 + install -Dm644 ./LICENSE ${subpkgdir}/usr/share/licenses/murmur/LICENSE +} + +md5sums="1a3ef91489ff674dfc010377d7721a28 mumble-1.2.8.tar.gz +b62d8e976d4f82ae850720ff70ead4b3 murmur.initd" +sha256sums="4c2fc3dff49687bc1d977905958e8a9c35e109723aeed42c9ea124104febe159 mumble-1.2.8.tar.gz +3f977e2b01f9e354ddf93111c0bee6b82e4f8a4530c7b1e11a004d45ec838937 murmur.initd" +sha512sums="9c3534dacce22c6152f3ffa847e98b3b1bab43fd8a92285362333487b1bb9a064699296005350cf09bd44a8070508beaf14d3b518465fad3db94710cd818bc5b mumble-1.2.8.tar.gz +26ec430c90dd934b921a69db56e1d394ffbcac10de3242734e182a7436d634261ed1aedd2e489c834bc42b12567ff4231280e8f8df66ab55df90e0ddd0cd7ea1 murmur.initd" |