updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mpdnotify-git / PKGBUILD
blob076aff37e73c9571ca33cd6b65798038efd032dc
1 pkgname=mpdnotify-git
2 pkgver=1.2.0
3 pkgrel=3
4 pkgdesc="libnotify daemon for MPD - GIT Version"
5 arch=('any')
6 url="http://git.silverirc.com/cgit.cgi/mpd-libnotify.git/"
7 license=('GPL')
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"
15 build() {
16   # Git
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
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
38   # Install
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