summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0443197aaac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Felipe Marinho <felipevm97@gmail.com>
+
+pkgname=musnify-mpd
+pkgver=1.0
+pkgrel=1
+pkgdesc="Provides notification support for Music Player Daemon using libnotify"
+arch=("any")
+url="https://github.com/felipemarinho97/musnify-mpd"
+license=('GPL')
+depends=("python2" "python2-requests" "python2-mpd" "python2-configparser" "python2-gobject" "libnotify")
+install="$pkgname.install"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/felipemarinho97/musnify-mpd/archive/$pkgver.tar.gz")
+md5sums=("a305febb8327e9b1e489f7382305ecfd")
+
+prepare() {
+ cd "$pkgname-$pkgver"
+}
+
+
+
+package() {
+ install -dm755 "$pkgdir"/{etc,usr/{bin,share/doc/musnify-mpd}}
+
+ _SRC="$srcdir/$pkgname-$pkgver"
+
+ echo "#!$(which python2)" >> $_SRC/musnify-mpd && cat $_SRC/musnify-mpd.py >> $_SRC/musnify-mpd
+ mv $_SRC/musnify-mpd $pkgdir/usr/bin/musnify-mpd
+ chmod 755 $pkgdir/usr/bin/musnify-mpd
+
+ cp $_SRC/musnify-mpd.config $pkgdir/etc/musnify-mpd.config
+
+ cp $_SRC/doc/musnify-mpdconfig.example $pkgdir/usr/share/doc/musnify-mpd/musnify-mpdconfig.example
+ chmod 555 $pkgdir/usr/share/doc/musnify-mpd/musnify-mpdconfig.example
+
+ cp $_SRC/README.md $pkgdir/usr/share/doc/musnify-mpd/README.md
+
+}