updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jsidplay2 / PKGBUILD
blobe1e6ee2300e624c3ecc5a0abf556c4bffe06b19a
1 # Contributor: rabyte <rabyte__gmail>
2 # Maintainer: Henning Bekel <h.bekel@googlemail.com>
4 pkgname=jsidplay2
5 pkgver=2.0
6 pkgrel=1
7 pkgdesc="A Java implementation of the sidplay2 SID file player/emulator"
8 arch=('i686' 'x86_64')
9 url="http://$pkgname.sourceforge.net/"
10 license=('GPL2')
11 depends=('java-environment')
12 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.zip \
13         $pkgname.sh $pkgname-console.sh)
14 md5sums=('1631a32c7946394fabb38c7792e89c85'
15          'a422c9b037694eb4ebbe536000f22ab7'
16          '264177db9fd344a30afc637b22a71cc9')
18 package() {
19   cd $srcdir/$pkgname-$pkgver
21   install -m644 -D $pkgname.jar $pkgdir/usr/share/$pkgname/$pkgname.jar
22   install -m644 *.jar $pkgdir/usr/share/$pkgname
24   if [[ "$CARCH" == "i686" ]]; then
25     install -m644 -D libjinput-linux.so $pkgdir/usr/lib/$pkgname/libjinput-linux.so
26   elif [[ "$CARCH" == "x86_64" ]]; then
27     install -m644 -D libjinput-linux64.so $pkgdir/usr/lib/$pkgname/libjinput-linux64.so
28   fi
30   install -m755 -D ../$pkgname.sh $pkgdir/usr/bin/$pkgname
31   install -m755 ../$pkgname-console.sh $pkgdir/usr/bin/$pkgname-console
33   install -m644 -D README_1st.txt $pkgdir/usr/share/doc/$pkgname/README_1st.txt
34   install -m644 README_2nd.txt $pkgdir/usr/share/doc/$pkgname/README_2nd.txt
38 # vim:set ts=2 sw=2 et: