PKGBUILDs/community/supercollider/PKGBUILD

70 lines
2.6 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
2018-11-28 21:50:17 +00:00
pkgver=3.10.0
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')
2018-11-28 21:50:17 +00:00
depends=('boost-libs' 'desktop-file-utils' 'fftw' 'jack' 'qt5-svg' 'qt5-webengine' 'qt5-webkit' 'qt5-websockets' 'yaml-cpp')
2017-12-24 22:26:34 +00:00
makedepends=('boost' 'cmake' 'emacs' 'qt5-tools')
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')
2018-06-08 05:06:34 +00:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2"
2018-11-28 21:50:17 +00:00
'boost-1.67.patch'
'use-system-boost.patch'
)
2017-12-24 22:26:34 +00:00
install="${pkgname}.install"
2018-11-28 21:50:17 +00:00
sha512sums=('5670f0264329f0e90ed9c1b5bf63853fd67cd83ad48e2d96979ca548ed42265105d766e7fbb51839cb7b917a687929080e7c42f1c0baf3eb36a5365dee4b12bb'
'9980d77802f18fd56d2a13f24f070e81768d9111b2cc63e479a0e9b405a04aec28bc523e5d36aab0462af6a3831d64598470cdc6c3266431e2ca64aa427a6bf2'
'5e42f64e5e08ca9e03870e662b6694a0c41f4ab2e6522c8d2aade617a68b4455dc1932a18de18176a9ed9fc89e36f1f1ec76d3e3ff8322d0d1e8ae6fb85cbce9')
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
# supernova build:
# https://github.com/supercollider/supercollider/issues/3981
2018-06-08 05:06:34 +00:00
patch -Np1 -i ../boost-1.67.patch
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
2018-11-28 21:50:17 +00:00
patch -Np1 -i ../use-system-boost.patch
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 \
-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
}
2018-11-28 21:50:17 +00:00
## too many tests dependent on X11:
## https://github.com/supercollider/supercollider/issues/3555
#check() {
# cd "${pkgname}-${pkgver}/build"
# make test ARGS="-V"
#}
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
}