PKGBUILDs/community/supercollider/PKGBUILD

70 lines
2.8 KiB
Bash
Raw Normal View History

2017-12-24 22:26:34 +00:00
# Maintainer: David Runge <dave@sleepmap.de>
# 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
2019-08-31 14:33:55 +00:00
pkgver=3.10.3
2019-10-06 15:47:02 +00:00
pkgrel=5
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')
2019-09-30 12:45:26 +00:00
depends=('alsa-lib' 'avahi' 'boost-libs' 'desktop-file-utils' 'fftw' 'gcc-libs'
'glibc' 'jack' 'libsndfile' 'libx11' 'qt5-base' 'qt5-svg' 'qt5-webengine'
'qt5-websockets' 'readline' 'systemd-libs' 'yaml-cpp')
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')
2019-08-31 14:33:55 +00:00
provides=('libscsynth.so')
2018-06-08 05:06:34 +00:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2"
2019-02-02 18:51:54 +00:00
"${pkgname}-use_system_boost.patch"
2019-09-30 12:45:26 +00:00
"${pkgname}-3.10.3-boost-1.70.patch::https://patch-diff.githubusercontent.com/raw/supercollider/supercollider/pull/4491.patch")
2017-12-24 22:26:34 +00:00
install="${pkgname}.install"
2019-08-31 14:33:55 +00:00
sha512sums=('e6427ae367395e50e3f31986bab43aa53894f6d8c35563371c14940e6c3303068d419f95edf198509479d8ac7420400d8f9df7d4168a326db2f262b954ea2c24'
2019-09-30 12:45:26 +00:00
'd9b2ef108673b11a27c63654ceacf3b7e51df11ce05fc6d9045abd219ea718c2552f5ea026a5182c272639e695a1073192013b14cae257e7e4b00dd3c303ecae'
'a0d0004d3e0a6e0eb346af4a262131054272ab6f9ddf62baea4bfe1eed332657536d6a80752e8422827bff0241d34e98905f9dc9fc3f02abade60d559a551e15')
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}"
2018-11-28 21:50:17 +00:00
# make sure system boost is used
2018-10-06 21:58:32 +00:00
# https://github.com/supercollider/supercollider/issues/4096
2019-02-02 18:51:54 +00:00
patch -Np1 -i ../"${pkgname}-use_system_boost.patch"
2019-09-30 12:45:26 +00:00
patch -Np1 -i ../"${pkgname}-3.10.3-boost-1.70.patch"
2018-11-28 21:50:17 +00:00
mkdir -v build
2015-12-10 04:56:11 +00:00
}
2013-11-05 02:39:32 +00:00
build() {
2018-11-28 21:50:17 +00:00
cd "${pkgname}-${pkgver}/build"
2013-11-05 02:39:32 +00:00
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
2019-09-30 12:45:26 +00:00
-DBoost_NO_BOOST_CMAKE=ON \
-DLIBSCSYNTH=ON \
2018-03-09 00:33:23 +00:00
-DFORTIFY=ON \
2018-03-09 19:10:34 +00:00
-DSYSTEM_YAMLCPP=ON \
2018-11-28 21:50:17 +00:00
-DSYSTEM_BOOST=ON \
2017-12-24 22:26:34 +00:00
-DSC_VIM=OFF \
-DSSE=OFF -DSSE2=OFF -DSUPERNOVA=OFF -DNOVA_SIMD=ON -DNATIVE=OFF \
2016-10-28 23:29:35 +00:00
-DCMAKE_C_FLAGS="${CFLAGS}"
2018-11-28 21:50:17 +00:00
make VERBOSE=1
2013-11-05 02:39:32 +00:00
}
2019-01-13 14:01:18 +00:00
check() {
cd "${pkgname}-${pkgver}/build"
xvfb-run make test ARGS="-V" || warning "Known failing tests: https://github.com/supercollider/supercollider/issues/3555"
}
2018-11-28 21:50:17 +00:00
2013-11-05 02:39:32 +00:00
package() {
2018-11-28 21:50:17 +00:00
cd "${pkgname}-${pkgver}/build"
2017-12-24 22:26:34 +00:00
make DESTDIR="${pkgdir}" install
2018-03-09 00:33:23 +00:00
install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
2018-03-25 15:37:06 +00:00
-vDm 644 ../{AUTHORS,{CHANGELOG,README,README_LINUX}.md}
2013-11-05 02:39:32 +00:00
}