PKGBUILDs/community/csound/PKGBUILD

95 lines
3.7 KiB
Bash
Raw Normal View History

2018-02-13 00:46:38 +00:00
# Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Ainola
# Contributor: speps
# Contributor: Bernardo Barros
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable NEON
2018-05-18 14:06:09 +00:00
# - disable java interface
2018-02-13 00:46:38 +00:00
# - skip aarch64 - incompatible with beta luajit
buildarch=22
pkgbase=csound
pkgname=('csound' 'csound-doc')
2018-11-19 19:33:30 +00:00
pkgver=6.12.2
pkgrel=1
2018-02-13 00:46:38 +00:00
pkgdesc="A programming language for sound rendering and signal processing."
arch=('x86_64')
url="http://csound.com"
license=('LGPL')
2018-03-15 18:10:27 +00:00
# wiiuse needs release before add: https://github.com/rpavlik/wiiuse/issues/92
2018-11-07 13:42:32 +00:00
# libpd needs to be packaged: https://github.com/libpd/libpd/releases
2018-03-15 18:10:27 +00:00
# current gmm doesn't work https://github.com/csound/csound/issues/920
2018-11-07 13:42:32 +00:00
makedepends=('boost' 'cmake' 'cunit' 'doxygen' 'dssi' 'eigen' 'faust' 'fltk'
'fluidsynth' 'git' 'hdf5' 'java-environment=8' 'ladspa' 'libmusicxml'
'libwebsockets' 'llvm' 'luajit' 'portmidi' 'portsmf' 'python2' 'stk' 'swig')
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/${pkgbase}/${pkgbase}/archive/${pkgver}.tar.gz"
"${pkgbase}.sh"
2018-02-13 00:46:38 +00:00
"https://github.com/${pkgbase}/${pkgbase}/releases/download/${pkgver}/Csound${pkgver}_manual_html.zip"
"https://github.com/${pkgbase}/${pkgbase}/releases/download/${pkgver}/Csound${pkgver}_manual_pdf.zip")
2018-11-19 19:33:30 +00:00
sha512sums=('e00a1f74e38cc5edadcaa4ea2a38a79a010be21008cad091b46c79ed18242a925ab9279fc049b4e82f6944e4d6e815787b7f847b08ae3bba9bde60570aa96f58'
2018-10-18 23:16:45 +00:00
'53a8ae1e61db2a3a492930ef0f0881b613ae47108c5e8de0a6e2aa28bcf7a5c93c7fea8b7fc2bbae29ab92e1e68bf94ba406be1255ad8ab5725ea9078c1fd6dc'
2018-11-07 13:42:32 +00:00
'eb287b9070c16d6cfbd890532d97eda34d72d8b5e5548a1a55ed7de91b2b913e04426cd50c94d0ac84221396002421077a5d22b3b67ce634c34a9aa1ceb53d9d'
2018-11-19 19:33:30 +00:00
'881bbdae5ab7fceb28199084173492eb8cc6477e72100739599e9d1448c607062efd1390b5cb19e03aeeae9c58eb608b61f36853dddb4d9141b86da31d00bc45')
2018-02-13 00:46:38 +00:00
prepare() {
2018-11-07 13:42:32 +00:00
cd "${pkgbase}-${pkgver}"
2018-02-13 00:46:38 +00:00
# requires out-of-tree build
2018-11-07 13:42:32 +00:00
mkdir build
2018-02-13 00:46:38 +00:00
}
build() {
2018-11-07 13:42:32 +00:00
cd "${pkgbase}-${pkgver}/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="-Wno-error -Wno-missing-field-initializers -DPFFFT_SIMD_DISABLE" \
-DCMAKE_C_FLAGS="-Wno-error -Wno-missing-field-initializers -DPFFFT_SIMD_DISABLE" \
-DBUILD_JAVA_INTERFACE=0 \
-DLUA_MODULE_INSTALL_DIR=/usr/lib/lua/5.1/ \
-DLUAJIT_LIBRARY=/usr/lib/libluajit-5.1.so \
-DLUA_H_PATH=/usr/include/luajit-2.0/ \
-DPYTHON_MODULE_INSTALL_DIR=/usr/lib/python2.7/site-packages \
-DBUILD_STATIC_LIBRARY=ON \
..
2018-02-13 00:46:38 +00:00
make
}
2018-11-07 13:42:32 +00:00
check() {
cd "${pkgbase}-${pkgver}/build"
make test
}
2018-02-13 00:46:38 +00:00
package_csound() {
2018-06-03 16:31:54 +00:00
groups=('pro-audio')
2018-11-07 13:42:32 +00:00
depends=('fluidsynth' 'git' 'hdf5' 'liblo' 'libmusicxml' 'libwebsockets'
'luajit' 'portmidi' 'portsmf' 'stk' 'tk')
2018-02-13 00:46:38 +00:00
optdepends=('csound-doc: The canonical Csound Reference Manual'
'csoundqt: Qt frontend'
2018-07-28 23:14:48 +00:00
'fltk: fltk GUIs'
2018-05-18 14:06:09 +00:00
'faust: Embed faust'
2018-11-07 13:42:32 +00:00
'java-runtime=8: Use csound with Java'
2018-07-28 23:14:48 +00:00
'python2: python opcodes'
2018-03-15 18:10:27 +00:00
'vim-csound: Use csound with vim')
2018-11-07 13:42:32 +00:00
cd "${pkgname}-${pkgver}/build"
2018-02-13 00:46:38 +00:00
make DESTDIR="${pkgdir}/" install
# export vars in profile.d
2018-05-18 14:06:09 +00:00
install -vDm 755 "${srcdir}/${pkgname}.sh" -t "${pkgdir}/etc/profile.d/"
2018-07-28 23:14:48 +00:00
# rename extract executable due to name conflict with libextractor
# https://github.com/csound/csound/issues/985
mv -v "${pkgdir}/usr/bin/extract" "${pkgdir}/usr/bin/${pkgname}-extract"
2018-02-13 00:46:38 +00:00
}
package_csound-doc() {
license=('LGPL' 'GPL')
2018-05-18 14:06:09 +00:00
install -vDm 644 "Csound${pkgver}_manual.pdf" \
"${pkgdir}/usr/share/doc/${pkgname}/${pkgbase}-manual.pdf"
2018-02-13 00:46:38 +00:00
2018-05-18 14:06:09 +00:00
install -dv "${pkgdir}/usr/share/doc/${pkgname}/html"
cp -av "${srcdir}"/html/* "${pkgdir}/usr/share/doc/${pkgname}/html"
2018-02-13 00:46:38 +00:00
# fix file permissions
find "${pkgdir}" -type f -exec chmod -c 644 {} \;
}
# vim:set ts=2 sw=2 et: