2013-11-29 21:55:30 +00:00
|
|
|
# $Id$
|
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
|
|
|
|
2013-11-05 03:03:12 +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-03-09 00:33:23 +00:00
|
|
|
pkgver=3.9.1
|
2018-03-21 23:01:01 +00:00
|
|
|
pkgrel=4
|
2013-11-05 02:39:32 +00:00
|
|
|
pkgdesc="An 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-03-09 19:10:34 +00:00
|
|
|
depends=('boost-libs' 'fftw' 'jack' 'qt5-webkit' '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-03-09 19:10:34 +00:00
|
|
|
source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2"
|
|
|
|
'0001-cmake-correctly-include-yaml-cpp.patch'
|
|
|
|
'0002-set-YAMLCPP_LIBRARY-and-YAMLCPP_INCLUDE_DIR-if-not-u.patch'
|
|
|
|
)
|
2017-12-24 22:26:34 +00:00
|
|
|
install="${pkgname}.install"
|
2018-03-09 19:10:34 +00:00
|
|
|
sha512sums=('01652f61498c84bf1b7c18ebe091794539d8f9cbb2112a04d0cb9d8b2e7f226d9876cffc76f6fa5519528c243c3ccc1380ace3bef5d70ff85e2bf32337b3d483'
|
|
|
|
'd4204b8c8ce12b383b39f96e9a9f36ee71a36ddfba019cdf0454ffa8170681bd38b688e41c6e5910f087ad13b3021f59dc2c0c825a500c57364b04fb5d90af30'
|
|
|
|
'be587ee652c652f2a19a68d06ca62cae5c5f6c5d4d3a5777723e1aba319e859ede418010345b7a4b0fe8d02dc70528fec7f4479dce259914f2d57d46d9ad659f')
|
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-03-09 19:10:34 +00:00
|
|
|
# fixing yaml-cpp include:
|
|
|
|
# https://github.com/supercollider/supercollider/issues/3557
|
|
|
|
patch -Np1 -i ../0001-cmake-correctly-include-yaml-cpp.patch
|
|
|
|
patch -Np1 -i \
|
|
|
|
../0002-set-YAMLCPP_LIBRARY-and-YAMLCPP_INCLUDE_DIR-if-not-u.patch
|
2017-12-24 22:26:34 +00:00
|
|
|
# requires out-of-tree build
|
2018-03-09 00:33:23 +00:00
|
|
|
mkdir -v bld
|
2015-12-10 04:56:11 +00:00
|
|
|
}
|
2013-11-05 02:39:32 +00:00
|
|
|
|
|
|
|
build() {
|
2018-03-09 00:33:23 +00:00
|
|
|
cd "${pkgname}-${pkgver}/bld"
|
2013-11-05 02:39:32 +00:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2013-11-05 03:03:12 +00:00
|
|
|
-DLIBSCSYNTH=ON \
|
2018-03-09 00:33:23 +00:00
|
|
|
-DFORTIFY=ON \
|
2018-03-09 19:10:34 +00:00
|
|
|
-DSYSTEM_BOOST=ON \
|
|
|
|
-DSYSTEM_YAMLCPP=ON \
|
2017-12-24 22:26:34 +00:00
|
|
|
-DSC_VIM=OFF \
|
2013-11-05 03:03:12 +00:00
|
|
|
-DSSE=OFF -DSSE2=OFF -DSUPERNOVA=OFF -DNOVA_SIMD=ON -DNATIVE=OFF \
|
2016-10-28 23:29:35 +00:00
|
|
|
-DCMAKE_C_FLAGS="${CFLAGS}"
|
2013-11-05 02:39:32 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-03-09 00:33:23 +00:00
|
|
|
cd "${pkgname}-${pkgver}/bld"
|
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}/" \
|
|
|
|
-vDm644 ../{AUTHORS,{CHANGELOG,README,README_LINUX}.md}
|
2013-11-05 02:39:32 +00:00
|
|
|
}
|