PKGBUILDs/community/zynaddsubfx/PKGBUILD

67 lines
2.2 KiB
Bash
Raw Normal View History

2016-02-10 05:55:24 +00:00
# $Id$
2017-12-25 02:28:21 +00:00
# Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: SpepS <dreamspepser at yahoo dot it>
2016-02-10 05:55:24 +00:00
# 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
2017-12-25 02:28:21 +00:00
pkgver=3.0.3
2018-06-14 23:25:39 +00:00
pkgrel=6
2016-02-10 05:55:24 +00:00
pkgdesc="Opensource software synthesizer capable of making a countless number of instruments."
2017-12-25 02:28:21 +00:00
arch=('x86_64')
2016-02-10 05:55:24 +00:00
url="http://zynaddsubfx.sourceforge.net"
2017-12-25 02:28:21 +00:00
license=('GPL2')
2018-06-05 23:23:55 +00:00
groups=('lv2-plugins' 'pro-audio' 'vst-plugins')
2018-06-14 23:25:39 +00:00
depends=('fftw' 'hicolor-icon-theme' 'liblo' 'libxpm' 'mxml' 'ntk' 'portaudio')
2017-12-25 02:28:21 +00:00
makedepends=('asciidoc' 'cmake' 'doxygen' 'gnuplot' 'dblatex' 'imagemagick' 'ghostscript' 'texlive-pstricks')
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha512sums=('e60e22656388d444114959859c12014ec79d7ba555b0d217ad98ad06e273916eea0eee521bb9dbfdef5be34205280d355b44a8f15760eeff06b16410d560b5d7')
2016-02-10 05:55:24 +00:00
2018-04-05 23:52:14 +00:00
prepare() {
2017-12-25 02:28:21 +00:00
cd "${pkgname}-${pkgver}"
2018-04-05 23:52:14 +00:00
mkdir -vp build
}
build() {
cd "${pkgname}-${pkgver}/build"
2016-02-10 05:55:24 +00:00
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDefaultOutput=jack \
-DDefaultInput=jack \
2018-04-05 23:52:14 +00:00
-DGuiModule=ntk \
2016-02-10 05:55:24 +00:00
-DNoNeonPlease=1 \
..
make
2017-12-25 02:28:21 +00:00
# build documentation
2018-04-05 23:52:14 +00:00
cd ../doc
2017-12-25 02:28:21 +00:00
make
2016-02-10 05:55:24 +00:00
}
package() {
2017-12-25 02:28:21 +00:00
cd "${pkgname}-${pkgver}/build"
make DESTDIR="${pkgdir}/" install
2016-02-10 05:55:24 +00:00
# banks and examples
2018-04-05 23:52:14 +00:00
install -vd "${pkgdir}/usr/share/${pkgname}"
cp -va ../instruments/banks "${pkgdir}/usr/share/${pkgname}"
cp -va ../instruments/examples "${pkgdir}/usr/share/${pkgname}"
2017-12-25 02:28:21 +00:00
# icons
2018-04-05 23:52:14 +00:00
install -vDm 644 "../${pkgname}.ico" \
"${pkgdir}/usr/share/pixmaps/${pkgname}.ico"
install -vDm 644 "../${pkgname}.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
2017-12-25 02:28:21 +00:00
# man page
2018-04-05 23:52:14 +00:00
install -vDm 644 "../doc/${pkgname}.1" \
"${pkgdir}/usr/share/man/man1/${pkgname}.1"
2017-12-25 02:28:21 +00:00
# documentation
2018-04-05 23:52:14 +00:00
install -vDm 644 "../doc/${pkgname}.html" \
"${pkgdir}/usr/share/doc/${pkgname}/${pkgname}.html"
install -vDm 644 "../doc/${pkgname}.pdf" \
"${pkgdir}/usr/share/doc/${pkgname}/${pkgname}.pdf"
cp -va ../doc/images "${pkgdir}/usr/share/doc/${pkgname}/"
2016-02-10 05:55:24 +00:00
}