PKGBUILDs/community/supercollider/PKGBUILD

88 lines
3.8 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-09-03 18:58:38 +00:00
pkgver=3.11.1
pkgrel=1
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"
"${pkgname}-3.11.1-fix_linker_errors.patch"
)
2017-12-24 22:26:34 +00:00
install="${pkgname}.install"
2020-09-03 18:58:38 +00:00
sha512sums=('5c4c5ba75f32ee7dda9a9e30c346ff028aedce81374474b4ee93fb8dc631f7b6ea54e91706b3502be6ed84baa69f6d659fcddaf5140ca292827d62734efbd6b2'
'SKIP'
'6a31c8c2edd102b806cfe110c2f27516e9fe05a7b074d50e14d5aad69cb80a2badfcb3a20f942d6dee90dfaf4bf5ae7eb8b8ef8c517ea8e0110bee7f0c2c4f40'
'900f6559986ba80fe5aa8a05881f1ccfc2ae01d5b18dc0cf963bf86bfb7cbc0b77dfb9a4f059e588c9563c2ef9f8632731f3d046b79d8bfdffa88111cae7c52a')
b2sums=('0fed25646c7163e8e13ae27024a25206f1ea141c5c23b93d7a1f4c00a30f0ce15a084b73eccb424f724f2000db138e3539b568045afddcfd612cf5dab99cb94d'
'SKIP'
'c589ea2451b4c232fa34de1b442e6822fb5867475b0e0bb7b94563cbfac54f09f47a7be8cf1e9f4a2896ffa678db40d718ec9ee301ad037eaebeb71772e773e4'
'b8d0b153d08dcf98b5b2c385c52a1c446086f4c795f34840bf1a55f8eccdf53e262fcfb8b7245332919d1b932e5887dc20236ad35df29c4712853d2676e89a20')
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-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
patch -Np1 -i "../${pkgname}-3.11.1-fix_linker_errors.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 \
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}"
xvfb-run make test ARGS="-V" -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
}