summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFelix Singer2017-05-19 16:34:18 +0200
committerFelix Singer2017-05-19 16:34:18 +0200
commit45bff6c02688b61b1431da65a39a7a23557688b1 (patch)
treeb4d998a2821176da75f3dc331f25cae593f6b6af /PKGBUILD
parente99f6c008a83a214a26a2e3f2fa8d4f7fc7eaf8b (diff)
downloadaur-45bff6c02688b61b1431da65a39a7a23557688b1.tar.gz
Add systemd service, use variables
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4d82566c50d..df1115a112d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,18 +28,20 @@ build() {
}
package() {
- cd "${srcdir}/mumble-${pkgver//_/\~}~snapshot"
+ murmur="${srcdir}/mumble-${pkgver//_/\~}~snapshot"
- cat release/murmurd release/libmumble_proto.a > "release/murmurd_new"
+ cat ${murmur}/release/murmurd ${murmur}/release/libmumble_proto.a > "${murmur}/release/murmurd_new"
install -m750 -d "${pkgdir}/etc/murmur"
- install -m640 -D "./scripts/murmur.ini" "${pkgdir}/etc/murmur/murmur.ini"
+ install -m640 -D "${murmur}/scripts/murmur.ini" "${pkgdir}/etc/murmur/murmur.ini"
- install -m755 -D "./release/murmurd_new" "${pkgdir}/usr/bin/murmurd"
+ install -m755 -D "${murmur}/release/murmurd_new" "${pkgdir}/usr/bin/murmurd"
+
+ install -m644 -D "murmur.service" "${pkgdir}/usr/lib/systemd/system/murmur.service"
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"
+ install -m644 -D "${murmur}/man/murmurd.1" "${pkgdir}/usr/share/man/man1/"
+ install -m644 -D "${murmur}/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|" \