4 pkgdesc="libnotify daemon for MPD - GIT Version"
6 url="http://git.silverirc.com/cgit.cgi/mpd-libnotify.git/"
8 conflicts=('mpdnotify')
9 depends=('bash' 'imagemagick' 'libnotify' 'mpd')
10 makedepends=('git' 'libnotify' 'imagemagick' 'mpd')
12 _gitroot="git://git.silverirc.com/mpd-libnotify.git"
13 _gitname="mpd-libnotify"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
34 # Create pkgdir folders
35 install -d $pkgdir/usr/bin
36 install -d $pkgdir/usr/share/mpd-libnotify
39 cp -R "extras" "$pkgdir/usr/share/mpd-libnotify"
40 install -Dm755 "mpdnotify" "$pkgdir/usr/share/mpd-libnotify/mpdnotify"
41 install -Dm644 "README.mkdn" "$pkgdir/usr/share/mpd-libnotify/README.mkdn"
43 ln -s /usr/share/mpd-libnotify/mpdnotify $pkgdir/usr/bin/mpdnotify