PKGBUILDs/extra/supercollider/PKGBUILD
2024-09-02 19:28:27 +00:00

118 lines
3.3 KiB
Bash

# Maintainer: Brett Cornwall <ainola@archlinux.org>
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: speps <speps at aur dot archlinux dot org>
# Contributor: osc <farid at archlinux-br.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added recommended cmake defines (last two lines)
_name=SuperCollider
pkgname=supercollider
pkgver=3.13.0
pkgrel=7
pkgdesc="Platform for audio synthesis and algorithmic composition"
arch=(x86_64)
url="https://supercollider.github.io"
license=(
GPL-2.0-or-later
GPL-3.0-or-later
)
groups=(pro-audio)
depends=(
gcc-libs
glibc
libx11
qt5-base
qt5-svg
qt5-webengine
qt5-websockets
)
makedepends=(
abletonlink
alsa-lib
avahi
boost
cmake
emacs
fftw
glib2-devel
libsndfile
qt5-tools
readline
systemd-libs
yaml-cpp
)
checkdepends=(xorg-server-xvfb)
optdepends=(
'emacs: emacs interface'
'gedit: gedit interface'
'sc3-plugins: additional extension plugins for scsynth'
)
provides=(libscsynth.so "sclang=$pkgver" "scsynth=$pkgver")
source=(
https://github.com/$pkgname/$pkgname/releases/download/Version-$pkgver/$_name-$pkgver-Source.tar.bz2{,.asc}
boost-1.84.patch
boost-1.85.patch
)
install=$pkgname.install
sha512sums=('a60a128f7646f077f91adae666fa4014529aa9df78cf0dfe5d68c9bd6447f008af7da2970b8736f3f29d0adbaf67bce680a8201fcbe7e1aba29c3499a57f89cd'
'SKIP'
'1b530d60570729a0b4dd13fbb9059b45288d4ff71391db6290b5e686985ad749267252c15eb63c81bf7bc01ca1141c163e3c7e30e6de1fc43c7b26ed66ab20cf'
'aabf9c44d5953adff7ee3f38d8d41b3b7dc2bdd4a498fb55df0aef66786f820ce5436accff44c7498743fe3ebbcc75549ec00769fe8269ea1f556419a93c16d9')
b2sums=('a5e57a17f93e40848b2044ee0791179f857d144eabb7f4d74580b2eebd49a31d6ec671a0526236c5b906aadeb455e5a7ad18cacb79ed214076d6bceca39ea2ae'
'SKIP'
'3c333d4b0b63d2c67167be6abe954a843cdd4c73b3cc28a9d7e011162dbb3ddf475ad75f03a780abb7cbf8a54ee0b308e02a7a752532f5f1c110a1e3d8152753'
'42b76de099a42643e107f8152fd6ba050771d938d89885c5e46d4e07d3e94d03c57cb4eefa0cd38c52f7cbfbf96fefa0101532cd64cd1efce8e2e76604ab99f0')
validpgpkeys=('2E1C4FC2F6BB58FA157B21B8064B501EB7405F04') # Marcin Pączkowski (dyfer)
prepare() {
cd $_name-$pkgver-Source
# Patches from Gentoo
patch -p1 -i ../boost-1.84.patch
patch -p1 -i ../boost-1.85.patch
}
build() {
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}"
)
export CFLAGS+=" -DNDEBUG"
export CXXFLAGS+=" -DNDEBUG"
cmake "${cmake_options[@]}"
cmake --build build --verbose
}
check() {
xvfb-run make test ARGS="-VV -j1" -C build
}
package() {
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
)
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 $_name-$pkgver-Source/{AUTHORS,{CHANGELOG,README,README_LINUX}.md} -t "$pkgdir/usr/share/doc/$pkgname/"
}