PKGBUILDs/community/zynaddsubfx/PKGBUILD

75 lines
2.3 KiB
Bash
Raw Normal View History

2014-01-20 19:50:08 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: SpepS <dreamspepser at yahoo dot it>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: DonVla <donvla@users.sourceforge.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to remove hardcoded sse flags
pkgname=zynaddsubfx
2015-11-18 14:32:35 +00:00
pkgver=2.5.2
pkgrel=1
2014-01-20 19:50:08 +00:00
pkgdesc="Opensource software synthesizer capable of making a countless number of instruments."
arch=('i686' 'x86_64')
url="http://zynaddsubfx.sourceforge.net"
license=('GPL')
2015-07-08 12:09:03 +00:00
depends=('fltk' 'portaudio' 'fftw' 'lash' 'mxml' 'jack' 'libxpm' 'gcc-libs' 'liblo')
2014-01-20 19:50:08 +00:00
makedepends=('cmake' 'pkgconfig' 'mesa' 'setconf' 'gendesk')
options=('!emptydirs')
2015-07-07 12:16:51 +00:00
source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
2014-01-20 19:50:08 +00:00
"$pkgname.svg"
'0001-no_sse_generic.patch')
2015-11-18 14:32:35 +00:00
md5sums=('c0d09b8e8d79691e79e7d424bc4f0263'
2014-01-20 19:50:08 +00:00
'6f7e9c3ce3947088a10c99c46a65431f'
2015-02-27 12:36:25 +00:00
'f52766f4dd6098269999f33cd18bedf1')
2014-01-20 19:50:08 +00:00
prepare() {
2014-07-03 13:24:22 +00:00
cd "zynaddsubfx-$pkgver"
2014-01-20 19:50:08 +00:00
patch -p1 -i ../0001-no_sse_generic.patch
}
build() {
cd "$srcdir"
gendesk $startdir/PKGBUILD
setconf "$pkgname.desktop" Icon "$pkgname.svg"
2014-07-03 13:24:22 +00:00
cd "zynaddsubfx-$pkgver"
2014-01-20 19:50:08 +00:00
sed -i '1,1i#include <unistd.h>' src/Nio/NulEngine.cpp
[ -d build ] || mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDefaultOutput=jack \
-DDefaultInput=jack \
-DGuiModule=fltk \
..
make
# build external programs
cd ../ExternalPrograms/Spliter && make
cd ../Controller && sed -i "s|Box\.h|Box\.H|" ControllerUI.fl && make
}
package() {
2014-07-03 13:24:22 +00:00
cd "$srcdir/zynaddsubfx-$pkgver/build"
2014-01-20 19:50:08 +00:00
make DESTDIR="$pkgdir/" install
# install external programs
install -Dm755 ../ExternalPrograms/Spliter/spliter "$pkgdir/usr/bin/spliter"
install -Dm755 ../ExternalPrograms/Controller/controller "$pkgdir/usr/bin/controller"
install -Dm644 ../ExternalPrograms/Spliter/readme.txt "$pkgdir/usr/share/doc/$pkgname/SPLITER.txt"
# banks and examples
install -d "$pkgdir/usr/share/$pkgname"
cp -a ../instruments/banks "$pkgdir/usr/share/$pkgname"
cp -a ../instruments/examples "$pkgdir/usr/share/$pkgname"
# desktop file and icon
install -Dm644 "$srcdir/$pkgname.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}