updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / ccx2-git / PKGBUILD
blobfde1601d41b1fec6dc878d83ff1b4c320735bc82
1 # Maintainer palbo <quuxbaz@gmail.com>
2 pkgname=ccx2-git
3 pkgver=20090308
4 pkgrel=1
5 pkgdesc="Console client for xmms2"
6 arch=(i686 x86_64)
7 url="http://github.com/palbo/ccx2"
8 license=("BSD")
9 depends=("ncurses" "python" "xmms2-git")
10 optdepends=("pil")
11 provides=(ccx2)
12 conflicts=(ccx2)
13 source=()
14 md5sums=()
16 _gitroot="git://github.com/palbo/ccx2.git"
17 _gitname="ccx2"
19 build() {
20   cd $srcdir
22   if [ -d $srcdir/$_gitname ] ; then
23     cd $_gitname && git pull origin
24   else
25     git clone $_gitroot
26     cd $_gitname
27   fi
29   rm -rf $srcdir/$_gitname-build
30   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
32   cd $srcdir/$_gitname-build
33   python setup.py install --root=$pkgdir || return 1
35   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/ccx2/LICENSE" || return 1