PKGBUILDs/community/supercollider/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2013-11-29 21:55:30 +00:00
# $Id$
2013-11-05 02:39:32 +00:00
# Maintainer : 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
2016-11-06 15:32:52 +00:00
pkgver=3.8.0
2016-10-28 23:29:35 +00:00
pkgrel=1
2013-11-05 02:39:32 +00:00
pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition"
arch=('i686' 'x86_64')
url="http://supercollider.sourceforge.net/"
license=('GPL3')
2016-10-28 23:29:35 +00:00
depends=('jack' 'fftw' 'cwiid' 'qt5-webkit')
makedepends=('cmake' 'ruby' 'vim' 'emacs' 'qt5-tools' 'boost')
2013-11-05 02:39:32 +00:00
optdepends=('emacs: emacs interface'
'gedit: gedit interface'
'vim: vim interface'
'ruby: vim support')
2016-10-28 23:29:35 +00:00
source=("https://github.com/supercollider/supercollider/releases/download/Version-$pkgver/SuperCollider-$pkgver-Source-linux.tar.bz2"
supercollider-cxxflags.patch)
2016-11-06 15:32:52 +00:00
md5sums=('f9c077e92707ae187c5f10cfddccf291'
2016-10-28 23:29:35 +00:00
'4f62489286fe8008d6013fc59047c20b')
2015-12-10 04:56:11 +00:00
prepare() {
2016-10-28 23:29:35 +00:00
cd $_name-Source
# Fix CXXFLAGS
patch -p1 -i ../supercollider-cxxflags.patch
2015-12-10 04:56:11 +00:00
}
2013-11-05 02:39:32 +00:00
build() {
cd "$srcdir/$_name-Source"
2013-11-29 21:55:30 +00:00
[ -d b ] || mkdir b && cd b
2013-11-05 02:39:32 +00:00
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLIBSCSYNTH=ON \
2016-10-28 23:29:35 +00:00
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DBOOST_MATH_DISABLE_FLOAT128" \
-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() {
2013-11-29 21:55:30 +00:00
cd "$srcdir/$_name-Source/b"
2013-11-05 02:39:32 +00:00
make DESTDIR="$pkgdir/" install
}