aboutsummaryrefslogtreecommitdiffstats
path: root/zynaddsubfx/Pkgfile
blob: 78aa4a80d302ae39ed7a42ec475937ae1e9e605e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
}