updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / pianobar-git / PKGBUILD
blob16286031780f3ab541fe86fb7e44348cbf47dda7
1 # Contributor: MutantMonkey <mutantmonkey@gmail.com>
2 pkgname=pianobar-git
3 pkgver=20110619
4 pkgrel=1
5 pkgdesc="A free/open-source, console-based replacement for Pandora's Flash player"
6 url="http://6xq.net/0017"
7 arch=('i686' 'x86_64')
8 license=('MIT')
9 depends=('libao' 'faad2' 'libmad' 'readline')
10 optdepends=('libmad')
11 makedepends=('pkgconfig>=0.9' 'git' 'automake')
12 provides=('pianobar')
13 conflicts=('pianobar')
14 source=()
15 md5sums=()
16 sha256sums=()
18 _gitroot="git://github.com/PromyLOPh/pianobar.git"
19 _gitname="pianobar"
21 build() {
22         cd $srcdir
23         msg "Connecting to the pianobar git repository..."
25         if [ -d $srcdir/$_gitname ] ; then
26                 cd $_gitname && git pull origin
27                 msg "The local files are updated."
28         else
29                 git clone $_gitroot
30         fi
32         msg "GIT checkout done or server timeout"
33         msg "Starting make..."
35         rm -rf $srcdir/$_gitname-build  
36         cp -r $srcdir/$_gitname $srcdir/$_gitname-build
37         cd $srcdir/$_gitname-build/
39         make || return 1
40         make DESTDIR=$pkgdir PREFIX=/usr install || return 1
42         install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
43         install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1