updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / ncxmms2-git / PKGBUILD
blob89d9dba0b85735d34b632a1fb22c248adedb09d2
1 pkgname=ncxmms2-git
2 pkgver=20110914
3 pkgrel=1
4 pkgdesc="An ncurses xmms2 client"
5 url="https://github.com/pkunavin/ncxmms2"
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 depends=('xmms2' 'ncurses' 'glib')
9 makedepends=('gcc>=4.6' 'make' 'cmake' 'git' 'pkgconfig' 'boost')
10 conflicts=()
11 provides=()
12 replaces=()
13 _gitroot="git://github.com/pkunavin/ncxmms2.git"
14 _gitname="ncxmms2"
15 build() 
17         cd $srcdir
18         
19         if [ -d $startdir/src/$_gitname ] ; then
20                 cd $_gitname && git pull origin
21                 msg "The local files are updated."
22         else
23                 git clone $_gitroot $_gitname
24                 cd $_gitname
25         fi
27         cd $srcdir
28         if [ -d $_gitname-build ]; then
29                 rm -rf $_gitname-build
30         fi
32         cp -a $_gitname $_gitname-build
33         cd $_gitname-build
34         
35         cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . || return 1
36         make || return 1
37         make DESTDIR=${pkgdir} install || return 1