updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / atunes / PKGBUILD
blob2c9aa3bfb1a2e0b1915c253a0c8e63f4a055fc9b
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Joao Rodrigues <gothicknight (at) gmail (dot) com>
4 pkgname=atunes
5 pkgver=2.0.1
6 pkgrel=1
7 pkgdesc="A full-featured audio player and manager"
8 arch=('i686' 'x86_64')
9 url="http://www.atunes.org/"
10 license=('GPL')
11 depends=('java-runtime>=6' 'mplayer')
12 optdepends=('cdrkit: for ripping CDs via cdda2wav'
13             'vorbis-tools: for ripping Ogg Vorbis via oggenc')
14 install=atunes.install
15 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
16         $pkgname.desktop)
17 md5sums=('57437908d66d055f7a44888d3e11f27e'
18          'e00f8bcc3df45734295a37815934ba14')
20 build() {
21   cd "$srcdir/$pkgname-$pkgver-SNAPSHOT"
22   sed -i "21 c\cd /usr/share/java/$pkgname" aTunes.sh
23   install -Dm755 aTunes.sh "$pkgdir/usr/bin/$pkgname"
24   install -Dm644 $pkgname.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
25   install -Dm644 ../$pkgname.desktop \
26     "$pkgdir/usr/share/appliactions/$pkgname.desktop"
27   install -dm755 "$pkgdir/usr/share/java/$pkgname/lib"
28   install -m644 lib/* "$pkgdir/usr/share/java/$pkgname/lib"
29   install -m644 *.{ico,jar,so} "$pkgdir/usr/share/java/$pkgname"