mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
67 lines
2.2 KiB
Bash
67 lines
2.2 KiB
Bash
# $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>
|
|
# - don't build with neon (-DNoNeonPlease=1)
|
|
|
|
pkgname=zynaddsubfx
|
|
pkgver=3.0.1
|
|
pkgrel=1
|
|
pkgdesc="Opensource software synthesizer capable of making a countless number of instruments."
|
|
arch=('i686' 'x86_64')
|
|
url="http://zynaddsubfx.sourceforge.net"
|
|
license=('GPL')
|
|
depends=('fltk' 'portaudio' 'fftw' 'lash' 'mxml' 'jack' 'libxpm' 'gcc-libs' 'liblo')
|
|
makedepends=('cmake' 'pkgconfig' 'mesa' 'setconf' 'gendesk')
|
|
options=('!emptydirs')
|
|
source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
|
|
"$pkgname.svg")
|
|
sha256sums=('a8017f382be5af9e46e6e8771fb7d7c1fd2e480cf099bbb0c29606b217dd32e2'
|
|
'cf3e8228c1812aa5c320c7ea872727b852d12e98b751fa4996c7ab506d3b5eea')
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
gendesk $startdir/PKGBUILD
|
|
setconf "$pkgname.desktop" Icon "$pkgname.svg"
|
|
|
|
cd "zynaddsubfx-$pkgver"
|
|
|
|
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 \
|
|
-DNoNeonPlease=1 \
|
|
..
|
|
make
|
|
|
|
# build external programs
|
|
cd ../ExternalPrograms/Spliter && make
|
|
cd ../Controller && sed -i "s|Box\.h|Box\.H|" ControllerUI.fl && make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/zynaddsubfx-$pkgver/build"
|
|
|
|
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"
|
|
}
|