updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / herrie / PKGBUILD
blobd55c465b7d1849d70f22f12d80a8da6dfd9bef1f
1 # Contributor: juan pablo gonzalez <lord_jotape@yahoo.com.ar>
2  
3 pkgname=herrie
4 pkgver=2.2
5 pkgrel=2
6 pkgdesc="Herrie is a minimalistic music player that uses the command line" 
7 url="http://herrie.info/" 
8 depends=(libmodplug libsndfile libid3tag libxspf libmad libvorbis curl glib2)
9 source=(http://herrie.info/distfiles/$pkgname-$pkgver.tar.bz2)
10 md5sums=('88832b10298ab89473730eb0c93b6ddf')
11 arch=('i686' 'x86_64')
12 license="GPL" 
14 build() { 
15      cd $startdir/src/$pkgname-$pkgver
16         #an ugly but effective quick solution for change library from libxpiff to libxspf
17         for i in $(ls configure src/*.c)
18         do
19         sed s/spiff/xspf/g $i > $i.jptmp
20         cp $i.jptmp $i
21         sed s/SPIFF/XSPF/g $i > $i.jptmp
22         cp $i.jptmp $i
23         sed s/Spiff/Xspf/g $i > $i.jptmp
24         cp $i.jptmp $i
25         rm $i.jptmp
26         done
27      ./configure alsa
28      make || return 1 
29      make DESTDIR=$startdir/pkg install 
30 }