updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gmpc-libnotify-git / PKGBUILD
blob034692a35a5cd0cf33c71639945c39330e25edb7
1 #Contributor: DarkJesus <priestoftime@gmail.com>
3 pkgname=gmpc-libnotify-git
4 provides=gmpc-libnotify
5 conflicts=('gmpc-libnotify' 'gmpc-libnotify-svn')
6 pkgver=20080409
7 pkgrel=1
8 pkgdesc="A plugin for gmpc that displays notifications using libnotify"
9 url="http://sarine.nl/gmpc"
10 license="GPL"
11 arch=('i686' 'x86_64')
12 depends=('gmpc-git')
13 makedepends=('git' 'intltool' 'gob2' 'pkgconfig')
14 options=('!libtool')
15 source=()
16 md5sums=()
18 _gitroot="git://repo.or.cz/gmpc-libnotify.git"
19 _gitname="gmpc-libnotify"
20 build() {
21         cd $startdir/src
22         msg "Connecting to $_gitroot server..."
24         if [ -d $startdir/src/$_gitname ] ; then
25                 cd $_gitname && git-pull origin
26                 msg "The local files are updated."
27         else
28                 git clone $_gitroot
29         fi
31         msg "GIT checkout done or server timeout"
32         msg "Starting make..."
34         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
35         cd $startdir/src/$_gitname-build
37         ./autogen.sh --prefix=/usr
38         make || return 1
39         make DESTDIR=$startdir/pkg install
41         find $startdir/pkg -type f -name "*.la" -exec rm {} \;