1 # Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
2 # Contributor: svoufff <svoufff at gmail dot com>
6 pkgdesc="A java frontend to LinuxSampler."
9 url="http://www.linuxsampler.org/"
11 depends=('java-runtime' 'linuxsampler')
12 makedepends=('cvs' 'java-environment' 'apache-ant' 'jlscp-cvs')
13 conflicts=('jsampler')
15 source=('http://downloads.sourceforge.net/juife/juife-0.4a.tar.bz2'
16 'https://swingx.dev.java.net/files/documents/2981/135863/swingx-1.0.zip'
17 'https://substance.dev.java.net/files/documents/3294/127141/substance.jar'
21 'jsampler-classic.desktop')
22 noextract=('substance.jar')
23 md5sums=('e8c186d9434b7257ef17df36a502da04'
24 '166773cd821bbb0ba62fd13c0c2f0556'
25 '469983c8c68455e2cb1f6b630aa6c6e2'
26 'd2a2774d8e86bfef3e2dd1d0cd641db2'
27 'f8b7a4c35c9e1b32d8510a126b53e38a'
28 '65500cc73f7cbbd187eab3eb19f86bd0'
29 'ec884e5b6f4210ffff331beeeb4be531')
30 _cvsroot=":pserver:anonymous@cvs.linuxsampler.org:/var/cvs/linuxsampler"
36 msg "Connecting to cvs.linuxsampler.org"
38 if [ -d $_cvsmod/CVS ]; then
42 cvs -z3 -d$_cvsroot co $_cvsmod
46 msg "CVS checkout done or server timeout"
49 cp -r ../$_cvsmod ../$_cvsmod-build
50 cd $srcdir/$_cvsmod-build
52 # Copy java libs needed for build
54 cp /usr/share/java/jlscp/jlscp.jar lib/required/jlscp.jar
55 cp $srcdir/juife-0.4a/lib/juife.jar lib/required/juife.jar
56 cp $srcdir/swingx-1.0/dist/swingx-1.0.jar lib/required/swingx.jar
57 cp $srcdir/substance.jar lib/required/substance.jar
59 # Build jsampler interfaces
65 install -Dm0644 dist/JS_Classic-*.jar "$pkgdir/usr/share/java/jsampler/js-classic.jar" || return 1
66 install -Dm0644 dist/Fantasia-*.jar "$pkgdir/usr/share/java/jsampler/fantasia.jar" || return 1
68 # install shell scripts
69 install -Dm0755 ../jsampler.sh "$pkgdir/usr/bin/jsampler" || return 1
70 install -Dm0755 ../jsampler-classic.sh "$pkgdir/usr/bin/jsampler-classic" || return 1
72 # install freedesktop.org compatibility
73 install -Dm0644 res/fantasia/icons/app_icon.png "$pkgdir/usr/share/pixmaps/jsampler.png" || return 1
74 install -Dm0644 res/js-classic/icons/app-icon.png "$pkgdir/usr/share/pixmaps/jsampler-classic.png" || return 1
76 install -Dm0644 ../jsampler.desktop "$pkgdir/usr/share/applications/jsampler.desktop" || return 1
77 install -Dm0644 ../jsampler-classic.desktop "$pkgdir/usr/share/applications/jsampler-classic.desktop" || return 1
79 rm -rf $srcdir/$_cvsmod-build