summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Marinho2018-03-07 21:08:11 -0300
committerFelipe Marinho2018-03-07 21:08:11 -0300
commit69300662786016d5949bb9edb63016a260204ebf (patch)
tree6786cdf5733fc7009b6eff194380cb82f9d80be2
downloadaur-69300662786016d5949bb9edb63016a260204ebf.tar.gz
primeira versão v1.0
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD37
-rw-r--r--musnify-mpd.install5
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..91e516808e6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = musnify-mpd
+ pkgdesc = Provides notification support for Music Player Daemon using libnotify
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/felipemarinho97/musnify-mpd
+ install = musnify-mpd.install
+ arch = any
+ license = GPL
+ depends = python2
+ depends = python2-requests
+ depends = python2-mpd
+ depends = python2-configparser
+ depends = python2-gobject
+ depends = libnotify
+ source = musnify-mpd-1.0.tar.gz::https://github.com/felipemarinho97/musnify-mpd/archive/1.0.tar.gz
+ md5sums = a305febb8327e9b1e489f7382305ecfd
+
+pkgname = musnify-mpd
+
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
+
+}
diff --git a/musnify-mpd.install b/musnify-mpd.install
new file mode 100644
index 00000000000..72ad3cb8351
--- /dev/null
+++ b/musnify-mpd.install
@@ -0,0 +1,5 @@
+
+post_install() {
+ echo "config file stored in /etc/musnify-mpd.config"
+ echo "If you want, copy the /usr/share/doc/musnify-mpd/musnify-mpdconfig.example to ~/.config/musnify-mpd/musnify-mpd.config to set up your user config"
+} \ No newline at end of file