summaryrefslogtreecommitdiff
path: root/libre/supercollider/PKGBUILD
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-01-17 14:56:04 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-01-17 23:33:30 +0100
commit8257c71fa49ec1d8e43adcc9e1732522dcf0f64c (patch)
tree9581f0d91136653f422e9f3a7390cffdf00e431a /libre/supercollider/PKGBUILD
parent4a7cf2e608a100b7786ce3e081cf03637004774c (diff)
downloadabslibre-8257c71fa49ec1d8e43adcc9e1732522dcf0f64c.tar.gz
abslibre-8257c71fa49ec1d8e43adcc9e1732522dcf0f64c.tar.bz2
abslibre-8257c71fa49ec1d8e43adcc9e1732522dcf0f64c.zip
[libre] Add supercollider (without qt5-webengine)
The original arch package depended on the nonfree qt5-webengine. To avoid qt5-webengine, this package has been built without QT support. QT support was used for the IDE and a GUI, which may be able to work without qt5-webengine if supercollider is patched. Supercollider can also be used as a dependency of other packages that are not yet in Parabola such as sonicpi. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/supercollider/PKGBUILD')
-rw-r--r--libre/supercollider/PKGBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/libre/supercollider/PKGBUILD b/libre/supercollider/PKGBUILD
new file mode 100644
index 000000000..ae8988b89
--- /dev/null
+++ b/libre/supercollider/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer (Arch): David Runge <dave@sleepmap.de>
+# Contributor (Arch): speps <speps at aur dot archlinux dot org>
+# Contributor (Arch): osc <farid at archlinux-br.org>
+# Contributor (Prabola): Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+
+_name=SuperCollider
+pkgname=supercollider
+pkgver=3.10.0
+pkgrel=3
+pkgrel+=.par1
+pkgdesc="Environment and programming language for real time audio synthesis and algorithmic composition"
+pkgdesc+=" (built without nonfree qt5-webengine)"
+arch=('armv7h' 'i686' 'x86_64')
+url="https://supercollider.github.io"
+license=('GPL3')
+groups=('pro-audio')
+depends=('boost-libs' 'desktop-file-utils' 'fftw' 'jack' 'qt5-svg' 'qt5-webkit' 'qt5-websockets' 'yaml-cpp')
+makedepends=('boost' 'cmake' 'emacs' 'qt5-tools')
+checkdepends=('xorg-server-xvfb')
+optdepends=('emacs: emacs interface'
+ 'gedit: gedit interface'
+ 'sc3-plugins: additional extension plugins for scsynth')
+source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2"
+ 'boost-1.67.patch'
+ 'use-system-boost.patch'
+)
+install="${pkgname}.install"
+sha512sums=('5670f0264329f0e90ed9c1b5bf63853fd67cd83ad48e2d96979ca548ed42265105d766e7fbb51839cb7b917a687929080e7c42f1c0baf3eb36a5365dee4b12bb'
+ '9980d77802f18fd56d2a13f24f070e81768d9111b2cc63e479a0e9b405a04aec28bc523e5d36aab0462af6a3831d64598470cdc6c3266431e2ca64aa427a6bf2'
+ '5e42f64e5e08ca9e03870e662b6694a0c41f4ab2e6522c8d2aade617a68b4455dc1932a18de18176a9ed9fc89e36f1f1ec76d3e3ff8322d0d1e8ae6fb85cbce9')
+
+prepare() {
+ mv -v "${_name}-Source" "${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
+ # supernova build:
+ # https://github.com/supercollider/supercollider/issues/3981
+ patch -Np1 -i ../boost-1.67.patch
+ # make sure system boost is used
+ # https://github.com/supercollider/supercollider/issues/4096
+ patch -Np1 -i ../use-system-boost.patch
+ mkdir -v build
+}
+
+build() {
+ cd "${pkgname}-${pkgver}/build"
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLIBSCSYNTH=ON \
+ -DFORTIFY=ON \
+ -DSYSTEM_YAMLCPP=ON \
+ -DSYSTEM_BOOST=ON \
+ -DSC_VIM=OFF \
+ -DSC_IDE=OFF \
+ -DSC_QT=OFF
+ make VERBOSE=1
+}
+
+check() {
+ cd "${pkgname}-${pkgver}/build"
+ xvfb-run make test ARGS="-V" || warning "Known failing tests: https://github.com/supercollider/supercollider/issues/3555"
+}
+
+package() {
+ cd "${pkgname}-${pkgver}/build"
+ make DESTDIR="${pkgdir}" install
+ install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+ -vDm 644 ../{AUTHORS,{CHANGELOG,README,README_LINUX}.md}
+}