updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / jsampler-cvs / PKGBUILD
blob1ed7143b36632cc7838cd1d77b2945adc1db58a3
1 # Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
2 # Contributor: svoufff <svoufff at gmail dot com>
3 pkgname=jsampler-cvs
4 pkgver=20090722
5 pkgrel=1
6 pkgdesc="A java frontend to LinuxSampler."
7 arch=('i686' 'x86_64')
8 options=('')
9 url="http://www.linuxsampler.org/"
10 license=('GPL')
11 depends=('java-runtime' 'linuxsampler')
12 makedepends=('cvs' 'java-environment' 'apache-ant' 'jlscp-cvs')
13 conflicts=('jsampler')
14 provides=('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'
18         'jsampler.sh'
19         'jsampler-classic.sh'
20         'jsampler.desktop'
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"
31 _cvsmod="jsampler"
33 build() {
34   cd $srcdir/
36   msg "Connecting to cvs.linuxsampler.org"
38   if [ -d $_cvsmod/CVS ]; then
39     cd $_cvsmod
40     cvs update -d -P
41   else
42     cvs -z3 -d$_cvsroot co $_cvsmod
43     cd $_cvsmod
44   fi
46   msg "CVS checkout done or server timeout"
47   msg "Starting ant..."
49   cp -r ../$_cvsmod ../$_cvsmod-build
50   cd $srcdir/$_cvsmod-build
52   # Copy java libs needed for build
53   mkdir -p lib/required
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
60   . /etc/profile
61   ant build-fantasia
62   ant build-jsclassic
64   # install java files
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