PKGBUILDs/community/supercollider/PKGBUILD

98 lines
4.6 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-11-16 14:56:09 +00:00
pkgver=3.11.2
2021-06-10 13:02:13 +00:00
pkgrel=4
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-03-21 14:52:03 +00:00
depends=('gcc-libs' 'glibc' 'libx11' 'qt5-base' 'qt5-svg' 'qt5-webengine'
'qt5-websockets')
2020-03-22 15:19:21 +00:00
makedepends=('abletonlink' 'alsa-lib' 'avahi' 'boost' 'cmake' 'emacs' 'fftw'
'libsndfile' 'qt5-tools' 'readline' 'systemd-libs' 'yaml-cpp')
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-09-03 18:58:38 +00:00
provides=('libscsynth.so' "sclang=${pkgver}" "scsynth=${pkgver}")
source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source.tar.bz2"{,.asc}
"${pkgname}-3.11.1-devendor_abletonlink.patch::https://github.com/supercollider/supercollider/pull/4836/commits/95bd9721226f3cb1bba903bea8154cee5859cfb8.patch"
2020-11-16 14:56:09 +00:00
"${pkgname}-3.11.2-fix_4992.patch::https://github.com/dvzrv/supercollider/commit/9563fb5e73425a2ee0370162178964cceb559d5d.patch"
2020-12-09 15:16:40 +00:00
"${pkgname}-3.11.2-boost-1.74.patch::https://github.com/supercollider/supercollider/commit/cc873049ff9249a33567e4cbcdeffeb6806a30d6.patch"
2020-09-03 18:58:38 +00:00
)
2017-12-24 22:26:34 +00:00
install="${pkgname}.install"
2020-11-16 14:56:09 +00:00
sha512sums=('636062c6acf8be43260632287b587f167352079c4e86ede34d1c6056180bfdb3ae50d6a3ff4f349327a3ab6af0eb01ac503d6b22667b4799dfcddd9c6489a23c'
2020-09-03 18:58:38 +00:00
'SKIP'
2021-06-10 13:02:13 +00:00
'972aaebde8de5aaf5d6a01e59f3e6fe3b64fba63495bc0216cc91a5f7590fc987f8c592503556f97dd6c7e7fd7437915fc6d02fdd447fd8a80d43d24ab1216d1'
'd957b7b1c272a121dd24308b1d5073a0bcce4c04aed56af05819003ed149e6ec632fb323c9cc195685a51f28cb9489fd179eff7d6c3be52158f0a404a1990b69'
'a014924881ea8a7b84d7a3cc77d3e0e735ef5edb28062e7859a9a227f86cc00c1c04753b1ce7fca423be513dc8c476236814fcd16ab154fda948948736472814')
2020-11-16 14:56:09 +00:00
b2sums=('3713561e5ebee6dd4c08baa8aaaf4a422ab983480c76b2176373ce3cd080128f9392b50482e02dc82dce235e928d058c42722e0863dad9f6d2dd086894cd85da'
2020-09-03 18:58:38 +00:00
'SKIP'
2021-06-10 13:02:13 +00:00
'0c84bb1e31eee267a8bce5cdc8fd7da97e3336a565eacc8759bc3fe33c5f4c1f6cf6dfcf2ea01405676ada660d1b6ac09bce3fb2faa4987599289e5fc5cdc0d7'
'd496b364f63c04e5bc93542fcdb537fcbc86a5687202555cabe68e28c1dbfc131aaab2f4b76a2a47d26785e9f029408f8fc02f1d5a2e19cfdea65c2159f5a26f'
'734bee43a90951b646d3c4ae1273b85257765e9156bd1b9f3dabafeda9728d7af2257155f990bc0b1038c7d1e372f95f5c7686fb7bff9f5c092b988f52816faa')
2020-09-03 18:58:38 +00:00
validpgpkeys=('0B7D1EA4E32B5C3C4275D3C70796CC538BEFF177') # Brian Heim <self@brianlheim.com>
2020-03-21 14:52:03 +00:00
2015-12-10 04:56:11 +00:00
prepare() {
2020-04-01 23:43:42 +00:00
mv -v "${_name}-${pkgver}-Source" "${pkgname}-${pkgver}"
2018-03-09 00:33:23 +00:00
cd "${pkgname}-${pkgver}"
2020-03-21 14:52:03 +00:00
# devendoring Ableton Link:
# https://github.com/supercollider/supercollider/issues/4818
2020-03-21 21:37:20 +00:00
# https://github.com/supercollider/supercollider/pull/4836
2020-11-16 14:56:09 +00:00
echo "Applying patch: ../${pkgname}-3.11.1-devendor_abletonlink.patch"
2020-09-03 18:58:38 +00:00
patch -Np1 -i "../${pkgname}-3.11.1-devendor_abletonlink.patch"
# fix linker issues with libscsynth.so (backported patch)
# https://github.com/supercollider/supercollider/issues/4992
2020-11-16 14:56:09 +00:00
echo "Applying patch: ../${pkgname}-3.11.2-fix_4992.patch"
patch -Np1 -i "../${pkgname}-3.11.2-fix_4992.patch"
2020-12-09 15:16:40 +00:00
echo "Applying patch: ../${pkgname}-3.11.2-boost-1.74.patch"
patch -Np1 -i "../${pkgname}-3.11.2-boost-1.74.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}"
2020-09-09 20:29:42 +00:00
export CFLAGS+=" -DNDEBUG"
export CXXFLAGS+=" -DNDEBUG"
2020-01-18 22:39:52 +00:00
cmake -DCMAKE_INSTALL_PREFIX=/usr \
2020-09-03 18:58:38 +00:00
-DCMAKE_BUILD_TYPE='None' \
2020-01-18 22:39:52 +00:00
-DBoost_NO_BOOST_CMAKE=ON \
-DLIBSCSYNTH=ON \
-DFORTIFY=ON \
2020-03-21 14:52:03 +00:00
-DSYSTEM_ABLETON_LINK=ON \
2020-01-18 22:39:52 +00:00
-DSYSTEM_BOOST=ON \
2020-03-21 14:52:03 +00:00
-DSYSTEM_YAMLCPP=ON \
2020-01-18 22:39:52 +00:00
-DSC_VIM=OFF \
2020-09-03 18:58:38 +00:00
-Wno-dev \
2020-01-18 22:39:52 +00:00
-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-09-03 18:58:38 +00:00
-S .
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() {
2020-09-03 18:58:38 +00:00
cd "${pkgname}-${pkgver}"
2020-09-09 20:29:42 +00:00
xvfb-run make test ARGS="-VV -d -j1" -C build
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-03-21 14:52:03 +00:00
depends+=('libasound.so' 'libavahi-common.so' 'libavahi-client.so'
'libboost_filesystem.so' 'libboost_program_options.so' 'libboost_regex.so'
'libboost_thread.so' 'libfftw3f.so' 'libjack.so' 'libsndfile.so'
'libreadline.so' 'libudev.so' 'libyaml-cpp.so')
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
}