PKGBUILDs/extra/supercollider/PKGBUILD

102 lines
2.6 KiB
Bash
Raw Normal View History

2021-08-15 00:49:04 +00:00
# Maintainer: Brett Cornwall <ainola@archlinux.org>
2020-01-18 22:39:52 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
2017-12-24 22:26:34 +00:00
# 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
2023-02-21 01:51:46 +00:00
pkgver=3.13.0
2023-09-02 14:09:41 +00:00
pkgrel=3
2021-08-15 00:49:04 +00:00
pkgdesc="Platform for audio synthesis and algorithmic composition"
2022-01-10 23:55:41 +00:00
arch=(x86_64)
2017-12-24 22:26:34 +00:00
url="https://supercollider.github.io"
2022-01-10 23:55:41 +00:00
license=(GPL3)
groups=(pro-audio)
2023-03-17 23:30:14 +00:00
depends=(
gcc-libs
glibc
libx11
qt5-base
qt5-svg
qt5-webengine
qt5-websockets
)
makedepends=(
abletonlink
alsa-lib
avahi
boost
cmake
emacs
fftw
libsndfile
qt5-tools
readline
systemd-libs
yaml-cpp
)
2022-01-10 23:55:41 +00:00
checkdepends=(xorg-server-xvfb)
2023-03-17 23:30:14 +00:00
optdepends=(
'emacs: emacs interface'
'gedit: gedit interface'
'sc3-plugins: additional extension plugins for scsynth'
)
provides=(libscsynth.so "sclang=$pkgver" "scsynth=$pkgver")
2021-08-15 00:49:04 +00:00
source=(
2023-03-17 23:30:14 +00:00
https://github.com/$pkgname/$pkgname/releases/download/Version-$pkgver/$_name-$pkgver-Source.tar.bz2{,.asc}
2020-09-03 18:58:38 +00:00
)
2023-03-17 23:30:14 +00:00
install=$pkgname.install
2023-02-21 01:51:46 +00:00
sha512sums=('a60a128f7646f077f91adae666fa4014529aa9df78cf0dfe5d68c9bd6447f008af7da2970b8736f3f29d0adbaf67bce680a8201fcbe7e1aba29c3499a57f89cd'
'SKIP')
b2sums=('a5e57a17f93e40848b2044ee0791179f857d144eabb7f4d74580b2eebd49a31d6ec671a0526236c5b906aadeb455e5a7ad18cacb79ed214076d6bceca39ea2ae'
'SKIP')
2021-08-15 00:49:04 +00:00
validpgpkeys=('2E1C4FC2F6BB58FA157B21B8064B501EB7405F04') # Marcin Pączkowski (dyfer)
2020-03-21 14:52:03 +00:00
2015-12-10 04:56:11 +00:00
2013-11-05 02:39:32 +00:00
build() {
2023-03-17 23:30:14 +00:00
local cmake_options=(
-B build
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_BUILD_TYPE=None
-D Boost_NO_BOOST_CMAKE=ON
-D LIBSCSYNTH=ON
-D FORTIFY=ON
-D SYSTEM_ABLETON_LINK=ON
-D SYSTEM_BOOST=ON
-D SYSTEM_YAMLCPP=ON
-D SC_VIM=OFF
-S $_name-$pkgver-Source
-W no-dev
-DSSE=OFF -DSSE2=OFF -DSUPERNOVA=OFF -DNOVA_SIMD=ON -DNATIVE=OFF
-DCMAKE_C_FLAGS="${CFLAGS}"
)
2020-09-09 20:29:42 +00:00
export CFLAGS+=" -DNDEBUG"
export CXXFLAGS+=" -DNDEBUG"
2023-03-17 23:30:14 +00:00
cmake "${cmake_options[@]}"
cmake --build build --verbose
2013-11-05 02:39:32 +00:00
}
2019-01-13 14:01:18 +00:00
check() {
2020-09-09 20:29:42 +00:00
xvfb-run make test ARGS="-VV -d -j1" -C build
2019-01-13 14:01:18 +00:00
}
2018-11-28 21:50:17 +00:00
2013-11-05 02:39:32 +00:00
package() {
2023-03-17 23:30:14 +00:00
depends+=(
alsa-lib libasound.so
avahi libavahi-common.so libavahi-client.so
boost-libs libboost_{filesystem,program_options,thread}.so
fftw libfftw3f.so
jack libjack.so
libsndfile libsndfile.so
readline libreadline.so
systemd-libs libudev.so
yaml-cpp libyaml-cpp.so
)
2022-01-10 23:55:41 +00:00
2023-03-17 23:30:14 +00:00
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 $_name-$pkgver-Source/{AUTHORS,{CHANGELOG,README,README_LINUX}.md} -t "$pkgdir/usr/share/doc/$pkgname/"
2013-11-05 02:39:32 +00:00
}