summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFelix Singer2017-05-19 16:19:46 +0200
committerFelix Singer2017-05-19 16:19:46 +0200
commite99f6c008a83a214a26a2e3f2fa8d4f7fc7eaf8b (patch)
tree26f2cfd26e9959356caac27453a956c80c935494 /PKGBUILD
parentbea930732de8a1284fc875eb1a5708c2e239e00d (diff)
downloadaur-e99f6c008a83a214a26a2e3f2fa8d4f7fc7eaf8b.tar.gz
Add config, create working directories
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 15 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f2c310e44eb..4d82566c50d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Felix Singer
-pkgname=murmur-snapshot-noice
+_pkgname=murmur
+pkgname=${_pkgname}-snapshot-noice
pkgver=1.3.0_2389_gdde8173
pkgrel=1
pkgdesc="The voice chat application server for Mumble"
@@ -9,6 +10,9 @@ url="https://mumble.info"
license=('BSD')
depends=('qt5-base' 'protobuf')
makedepends=('python' 'boost')
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}")
+install=murmur-snapshot-minimal.install
source=("https://mumble.info/snapshot/mumble-${pkgver//_/\~}~snapshot.tar.gz")
sha512sums=('18d0c2e8d0caeed1306429a367a2756260280a3bcc7ed8bac7c3a6e8b8938e6f13b65c83271f1411b948c50d20d7426aebaf14f271109df8c62209108157e374')
@@ -28,10 +32,20 @@ package() {
cat release/murmurd release/libmumble_proto.a > "release/murmurd_new"
+ install -m750 -d "${pkgdir}/etc/murmur"
+ install -m640 -D "./scripts/murmur.ini" "${pkgdir}/etc/murmur/murmur.ini"
+
install -m755 -D "./release/murmurd_new" "${pkgdir}/usr/bin/murmurd"
+
install -m755 -d "${pkgdir}/usr/share/man/man1"
install -m644 -D "./man/murmurd.1" "${pkgdir}/usr/share/man/man1/"
install -m644 -D "./LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ sed -e "s|database=|database=/var/lib/murmur/murmur.sqlite|" \
+ -e "s|;logfile=murmur.log|logfile=/var/log/murmur/murmur.log|" \
+ -e "s|;pidfile=|pidfile=/run/murmur/murmur.pid|" \
+ -e "s|;uname=|uname=murmur|" \
+ -i "${pkgdir}/etc/murmur/murmur.ini"
}
# vim: sw=2:ts=2 et: