PKGBUILDs/community/supercollider/PKGBUILD

51 lines
1.7 KiB
Bash
Raw Normal View History

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
# 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-01-23 00:48:44 +00:00
pkgver=3.9.0
pkgrel=1
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')
2017-12-24 22:26:34 +00:00
depends=('boost-libs' 'fftw' 'jack' 'qt5-webkit')
makedepends=('boost' 'cmake' 'emacs' 'qt5-tools')
2013-11-05 02:39:32 +00:00
optdepends=('emacs: emacs interface'
2017-12-24 22:26:34 +00:00
'gedit: gedit interface')
2018-01-23 00:48:44 +00:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2")
2017-12-24 22:26:34 +00:00
install="${pkgname}.install"
2018-01-23 00:48:44 +00:00
sha512sums=('52274ce0c5e604e44f844e77bb7245d6829c49a002ac0c383c3d150f48c60bd79b8f0481cd629e13544d6a01f2c5fd05d92d24d2c24602df2bf798cff94c0b0f')
2015-12-10 04:56:11 +00:00
prepare() {
2017-12-24 22:26:34 +00:00
cd "${_name}-Source"
# requires out-of-tree build
[ -d bld ] || mkdir bld && cd bld
2015-12-10 04:56:11 +00:00
}
2013-11-05 02:39:32 +00:00
build() {
2017-12-24 22:26:34 +00:00
cd "${_name}-Source/bld"
2013-11-05 02:39:32 +00:00
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLIBSCSYNTH=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}"
2013-11-05 02:39:32 +00:00
make
}
package() {
2017-12-24 22:26:34 +00:00
cd "${_name}-Source/bld"
make DESTDIR="${pkgdir}" install
cd ..
install -Dm644 AUTHORS ${pkgdir}/usr/share/doc/${pkgname}/AUTHORS
install -Dm644 CHANGELOG.md ${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md
install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md
install -Dm644 README_LINUX.md ${pkgdir}/usr/share/doc/${pkgname}/README_LINUX.md
2013-11-05 02:39:32 +00:00
}