summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0443197aaac44b846ed746531aee293c7f4cf67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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

}