diff options
Diffstat (limited to 'community/tuxguitar/PKGBUILD')
-rw-r--r-- | community/tuxguitar/PKGBUILD | 59 |
1 files changed, 40 insertions, 19 deletions
diff --git a/community/tuxguitar/PKGBUILD b/community/tuxguitar/PKGBUILD index 3da24b09c..bbd3a8def 100644 --- a/community/tuxguitar/PKGBUILD +++ b/community/tuxguitar/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 65417 2012-02-21 03:31:38Z spupykin $ +# $Id: PKGBUILD 84141 2013-02-11 15:15:31Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: |AhIoRoS| < ahioros@gmail.com > pkgname=tuxguitar pkgver=1.2 -pkgrel=5 +pkgrel=6 _jdk=java-7-openjdk pkgdesc="multitrack guitar tablature editor and player" arch=('i686' 'x86_64') @@ -19,13 +19,11 @@ source=(tuxguitar-src-$pkgver.tar.gz::http://sourceforge.net/projects/tuxguitar/ tuxguitar.desktop tuxguitar.xml) md5sums=('f41ed20e77c6c3d8968991a29c71b912' - 'eea5247daa70ce6fc15e95b1080af486' + '0afa7f3248b9317d73ad8ccdc5e5aaf0' '59ce4eb8dcc0d0dde81e6cf2820aa9b0') build() { cd $srcdir/tuxguitar-src-$pkgver - mkdir -p $pkgdir/usr/share/tuxguitar - mkdir -p $pkgdir/usr/bin export CLASSPATH=/usr/share/java/swt.jar:$CLASSPATH @@ -48,20 +46,12 @@ build() { (cd TuxGuitar-gervill/ && ant) (cd TuxGuitar-jsa/ && ant) - cp -r TuxGuitar/share $pkgdir/usr/share/tuxguitar/ - find -name \*.jar -exec sh -c 'cp {} '$pkgdir'/usr/share/tuxguitar/share/plugins/`basename {}`' \; - mv $pkgdir/usr/share/tuxguitar/share/plugins/tuxguitar.jar $pkgdir/usr/share/tuxguitar/ - cp TuxGuitar/tuxguitar $pkgdir/usr/share/tuxguitar/ - # alsa pushd TuxGuitar-alsa/jni gcc -I/usr/lib/jvm/${_jdk}/include -I/usr/lib/jvm/${_jdk}/include/linux -fPIC \ -c -o org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.o \ org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.c gcc -shared -o libtuxguitar-alsa-jni.so org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.o -L/usr/lib -lasound - install -D -m0755 libtuxguitar-alsa-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-alsa-jni.so - mkdir -p $pkgdir/usr/share/tuxguitar/lib - ln -s /usr/lib/tuxguitar/libtuxguitar-alsa-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-alsa-jni.so popd # oss @@ -70,9 +60,6 @@ build() { -c -o org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.o \ org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c gcc -shared -o libtuxguitar-oss-jni.so org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.o -L/usr/lib - install -D -m0755 libtuxguitar-oss-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-oss-jni.so - mkdir -p $pkgdir/usr/share/tuxguitar/lib - ln -s /usr/lib/tuxguitar/libtuxguitar-oss-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-oss-jni.so popd # jack @@ -81,9 +68,6 @@ build() { -c -o org_herac_tuxguitar_jack_JackClient.o \ org_herac_tuxguitar_jack_JackClient.c gcc -shared -o libtuxguitar-jack-jni.so org_herac_tuxguitar_jack_JackClient.o -L/usr/lib -ljack - install -D -m0755 libtuxguitar-jack-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-jack-jni.so - mkdir -p $pkgdir/usr/share/tuxguitar/lib - ln -s /usr/lib/tuxguitar/libtuxguitar-jack-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-jack-jni.so popd # fluidsynth @@ -92,6 +76,43 @@ build() { -c -o org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth.o \ org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth.c gcc -shared -o libtuxguitar-fluidsynth-jni.so org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth.o -L/usr/lib -lfluidsynth + popd +} + +package() { + cd $srcdir/tuxguitar-src-$pkgver + + mkdir -p $pkgdir/usr/share/tuxguitar + mkdir -p $pkgdir/usr/bin + + cp -r TuxGuitar/share $pkgdir/usr/share/tuxguitar/ + find -name \*.jar -exec sh -c 'cp {} '$pkgdir'/usr/share/tuxguitar/share/plugins/`basename {}`' \; + mv $pkgdir/usr/share/tuxguitar/share/plugins/tuxguitar.jar $pkgdir/usr/share/tuxguitar/ + cp TuxGuitar/tuxguitar $pkgdir/usr/share/tuxguitar/ + + # alsa + pushd TuxGuitar-alsa/jni + install -D -m0755 libtuxguitar-alsa-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-alsa-jni.so + mkdir -p $pkgdir/usr/share/tuxguitar/lib + ln -s /usr/lib/tuxguitar/libtuxguitar-alsa-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-alsa-jni.so + popd + + # oss + pushd TuxGuitar-oss/jni + install -D -m0755 libtuxguitar-oss-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-oss-jni.so + mkdir -p $pkgdir/usr/share/tuxguitar/lib + ln -s /usr/lib/tuxguitar/libtuxguitar-oss-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-oss-jni.so + popd + + # jack + pushd TuxGuitar-jack/jni + install -D -m0755 libtuxguitar-jack-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-jack-jni.so + mkdir -p $pkgdir/usr/share/tuxguitar/lib + ln -s /usr/lib/tuxguitar/libtuxguitar-jack-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-jack-jni.so + popd + + # fluidsynth + pushd TuxGuitar-fluidsynth/jni install -D -m0755 libtuxguitar-fluidsynth-jni.so $pkgdir/usr/lib/tuxguitar/libtuxguitar-fluidsynth-jni.so mkdir -p $pkgdir/usr/share/tuxguitar/lib ln -s /usr/lib/tuxguitar/libtuxguitar-fluidsynth-jni.so $pkgdir/usr/share/tuxguitar/lib/libtuxguitar-fluidsynth-jni.so |