Created
February 20, 2016 22:20
-
-
Save sim590/16b0aecb2f9ee2d21dc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 0c5b7265da27913ffbaccce77262b4d9f061a8ec | |
Author: Simon Désaulniers <[email protected]> | |
Date: Sat Feb 20 14:09:56 2016 -0500 | |
adding systemd service file | |
diff --git a/PKGBUILD b/PKGBUILD | |
index f0bef97..1f4582e 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -18,10 +18,20 @@ optdepends=('lame: MP3 transcoding support' | |
'sox: WAV transcoding support' | |
'opus-tools: OPUS transcoding support' | |
'vorbis-tools: OGG transcoding support') | |
-source=("$pkgname-$pkgver.tar.gz::https://github.com/masmu/pulseaudio-dlna/archive/$pkgver.tar.gz") | |
-sha256sums=('38a19ce9d28a9f0031bf10da753231c1fc7d6eba653b477ff98037777f71fe95') | |
+source=( | |
+ "$pkgname-$pkgver.tar.gz::https://github.com/masmu/pulseaudio-dlna/archive/$pkgver.tar.gz" | |
+ "$pkgname.service::https://gist.githubusercontent.com/sim590/1824b3167cf55fc7817c/raw/630972adfafa416d6ac8c2cdf3461611b2fdfedc/pulseaudio-dlna.service" | |
+) | |
+sha256sums=('38a19ce9d28a9f0031bf10da753231c1fc7d6eba653b477ff98037777f71fe95' | |
+ '3f5a8882f40ec314f249680500584bd3ab8254a35dba6458c3119f8a4a0479fc') | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
python2 setup.py install --prefix="/usr" --root="$pkgdir" --optimize=1 | |
+ | |
+ install -Dpv $startdir/$pkgname.service $pkgdir/usr/lib/systemd/user/$pkgname.service | |
} | |
+ | |
+post_install() { systemctl daemon-reload; } | |
+ | |
+# vim: ts=2 sw=2: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment