updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / abc4j / PKGBUILD
blobdd0a96210e6c1af2411f00547d70c75f48015f15
1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
2 pkgname=abc4j
3 pkgver=0.5
4 pkgrel=1
5 pkgdesc="Java library which provides ABCynth + API to handle abc musical notation."
6 arch=(i686 x86_64)
7 url="http://code.google.com/p/abc4j/"
8 license=('GPL')
9 depends=('java-runtime')
11 source=(http://abc4j.googlecode.com/files/abc4j_v0.5.jar)
12 md5sums=('f1060e980491ed030a5ddec848f4b26b')
15 build() {
16   cd $srcdir/
18     mkdir -p $pkgdir/usr/share/${pkgname}
19     mkdir -p $pkgdir/usr/bin
20     
21     cp -fr $srcdir/../abc4j_v0.5.jar $pkgdir/usr/share/${pkgname} 
22     cp -fr $srcdir/ReleaseNotes.txt $pkgdir/usr/share/${pkgname}
24     
25         echo "java -jar /usr/share/abc4j/abc4j_v0.5.jar $1" > $pkgdir/usr/bin/${pkgname}
26         echo "java -jar /usr/share/abc4j/abc4j_v0.5.jar $1" > $pkgdir/usr/bin/abcynth
27         
28         chmod +x $pkgdir/usr/bin/*
29         
30         
31         #desktop icons
32         #mkdir -p $pkgdir/usr/share/pixmaps
33         mkdir -p $pkgdir/usr/share/applications
34     
35         #cp $srcdir/../$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
36         
37         install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop