updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / cmus-git / PKGBUILD
blobfa64babe4665adc2f2dec71a23952aed609e6d66
1 # Maintainer: Justin Goguen <adekoba@hamiltonshells.ca>
2 # Contributor: Jaroslav Lichtblau <tu@dragonlord.cz>
4 pkgname=cmus-git
5 pkgver=20100209
6 pkgrel=1
7 pkgdesc="A very feature-rich ncurses-based music player"
8 url="http://gitorious.org/cmus/"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 depends=('libao' 'libmpcdec' 'ffmpeg' 'flac' 'libmad' 'faad2>=2.6.1')
12 makedepends=('git')
13 provides=('cmus')
14 conflicts=('cmus')
16 _gitroot="git://gitorious.org/cmus/cmus.git"
17 _gitname="cmus"
19 build() {
20   cd "${srcdir}"
22   msg "connecting to gitorious.org git server"
23   if [ -d ${srcdir}/$_gitname ] ; then
24     cd $_gitname && git pull origin || return 1
25   else
26     git clone $_gitroot $_gitname || return 1
27   fi
28   msg "git checkout done"
29   msg "starting make ..."
31   rm -rf ${srcdir}/$_gitname-build
32   cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
33   cd ${srcdir}/$_gitname-build
35   ./configure prefix=/usr || return 1
36   make || return 1
37   make DESTDIR="${pkgdir}" install || return 1