aboutsummaryrefslogtreecommitdiffstats
path: root/zynaddsubfx/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'zynaddsubfx/Pkgfile')
-rw-r--r--zynaddsubfx/Pkgfile44
1 files changed, 44 insertions, 0 deletions
diff --git a/zynaddsubfx/Pkgfile b/zynaddsubfx/Pkgfile
new file mode 100644
index 0000000..78aa4a8
--- /dev/null
+++ b/zynaddsubfx/Pkgfile
@@ -0,0 +1,44 @@
+# Description: Synthétiseur opensource capable de créer un nombre d'instruments infini.
+# URL: http://zynaddsubfx.sourceforge.net
+# Maintainer: piernov <piernov@piernov.org>
+# Packager: piernov <piernov@piernov.org>
+# Depends on: fftw, mxml, jack2, fltk1
+# Run on: fftw,mxml,jack2,fltk1
+
+name=zynaddsubfx
+version=2.4.2
+release=1
+source=(http://downloads.sourceforge.net/$name/ZynAddSubFX-$version.tar.bz2
+ zynaddsubfx.svg
+ zynaddsubfx.desktop
+ spliter.desktop
+ controller.desktop)
+
+build() {
+ cd ZynAddSubFX-$version
+
+ sed -i -e 's|Fl_Box.h|Fl_Box.H|g' ExternalPrograms/Controller/ControllerUI.fl
+
+ mkdir build && cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ -DOutputModule=jack \
+ -DGuiModule=fltk
+ make
+ make DESTDIR=$PKG install
+
+ cd ../ExternalPrograms/Spliter
+ make
+ install -Dm755 spliter $PKG/usr/bin/spliter
+
+ cd ../Controller
+ make
+ install -Dm755 controller $PKG/usr/bin/controller
+ cd ../..
+
+ install -d $PKG/usr/share/{applications,$name}
+ cp -a banks $PKG/usr/share/$name
+ cp -a examples $PKG/usr/share/$name
+
+ install -m 644 $SRC/*.desktop $PKG/usr/share/applications/
+ install -Dm644 $SRC/$name.svg $PKG/usr/share/icons/hicolor/scalable/apps/$name.svg
+}