PKGBUILDs/community/supercollider/PKGBUILD

70 lines
2.7 KiB
Bash
Raw Normal View History

2020-01-18 22:39:52 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
2017-12-24 22:26:34 +00:00
# Contributor: speps <speps at aur dot archlinux dot org>
2013-11-29 21:55:30 +00:00
# Contributor: osc <farid at archlinux-br.org>
2013-11-05 02:39:32 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added recommended cmake defines (last two lines)
2013-11-05 02:39:32 +00:00
_name=SuperCollider
pkgname=supercollider
2020-01-18 22:39:52 +00:00
pkgver=3.10.4
2020-01-30 13:35:09 +00:00
pkgrel=2
2018-06-08 05:06:34 +00:00
pkgdesc="Environment and programming language for real time audio synthesis and algorithmic composition"
2017-12-24 22:26:34 +00:00
arch=('x86_64')
url="https://supercollider.github.io"
2013-11-05 02:39:32 +00:00
license=('GPL3')
2018-06-08 05:06:34 +00:00
groups=('pro-audio')
2020-01-18 22:39:52 +00:00
depends=('avahi' 'desktop-file-utils' 'fftw' 'gcc-libs' 'glibc' 'libasound.so'
'libboost_filesystem.so' 'libboost_program_options.so' 'libboost_regex.so'
'libboost_thread.so' 'libjack.so' 'libsndfile.so' 'libx11' 'libyaml-cpp.so'
'qt5-base' 'qt5-svg' 'qt5-webengine' 'qt5-websockets' 'libreadline.so'
'systemd-libs')
2017-12-24 22:26:34 +00:00
makedepends=('boost' 'cmake' 'emacs' 'qt5-tools')
2019-01-13 14:01:18 +00:00
checkdepends=('xorg-server-xvfb')
2013-11-05 02:39:32 +00:00
optdepends=('emacs: emacs interface'
2018-03-21 23:01:01 +00:00
'gedit: gedit interface'
'sc3-plugins: additional extension plugins for scsynth')
2020-01-18 22:39:52 +00:00
provides=("libscsynth.so" "sclang=${pkgver}" "scsynth=${pkgver}")
# fixes for system boost were not backported:
# https://github.com/supercollider/supercollider/issues/4743
2018-06-08 05:06:34 +00:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2"
2020-01-18 22:39:52 +00:00
"${pkgname}-3.10.4-system_boost.patch::https://github.com/dvzrv/supercollider/commit/21f5c7f765223a77621c9a46beb95d0ac00115a4.patch")
2017-12-24 22:26:34 +00:00
install="${pkgname}.install"
2020-01-18 22:39:52 +00:00
sha512sums=('8d414e036899ed2c8f1e6852cf325d85f2b99b0fa98dc1bd832be6106c8ec4d71f130a3280a86abc24ff71606e98242899319f1c7ed782fbf02af375e0477f6b'
'e460e53c425bcd15d26214d9e4d5d16aa5ab9b9922ed0b6ad74ad4d62baff7666110da80e9b488a6c60905fe6cc5845da67ec246a3e00139b570bdbda372b683')
2015-12-10 04:56:11 +00:00
prepare() {
2018-03-09 00:33:23 +00:00
mv -v "${_name}-Source" "${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
2020-01-18 22:39:52 +00:00
patch -Np1 -i "../${pkgname}-3.10.4-system_boost.patch"
2015-12-10 04:56:11 +00:00
}
2013-11-05 02:39:32 +00:00
build() {
2020-01-18 22:39:52 +00:00
cd "${pkgname}-${pkgver}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBoost_NO_BOOST_CMAKE=ON \
-DLIBSCSYNTH=ON \
-DFORTIFY=ON \
-DSYSTEM_YAMLCPP=ON \
-DSYSTEM_BOOST=ON \
-DSC_VIM=OFF \
-B build \
-DSSE=OFF -DSSE2=OFF -DSUPERNOVA=OFF -DNOVA_SIMD=ON -DNATIVE=OFF \
2020-01-18 22:57:39 +00:00
-DCMAKE_C_FLAGS="${CFLAGS}" \
2020-01-18 22:39:52 +00:00
.
make VERBOSE=1 -C build
2013-11-05 02:39:32 +00:00
}
2019-01-13 14:01:18 +00:00
check() {
cd "${pkgname}-${pkgver}/build"
2020-01-18 22:39:52 +00:00
xvfb-run make test ARGS="-V" -C build || echo "Known failing tests: https://github.com/supercollider/supercollider/issues/3555"
2019-01-13 14:01:18 +00:00
}
2018-11-28 21:50:17 +00:00
2013-11-05 02:39:32 +00:00
package() {
2020-01-18 22:39:52 +00:00
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install -C build
install -vDm 644 {AUTHORS,{CHANGELOG,README,README_LINUX}.md} \
-t "${pkgdir}/usr/share/doc/${pkgname}/"
2013-11-05 02:39:32 +00:00
}