void-packages/srcpkgs/sc3-plugins/template

38 lines
1.4 KiB
Bash

# Template file for 'sc3-plugins'
pkgname=sc3-plugins
version=3.10.0
revision=2
_nova_simd_hash=2bdc68bc5704a42578300a4c18411df2405cb307
create_wrksrc=yes
build_wrksrc=sc3-plugins
build_style=cmake
configure_args="-DSUPERNOVA=ON -DSYSTEM_STK=ON"
hostmakedepends="pkg-config"
makedepends="fftw-devel libstk-devel"
depends="supercollider"
short_desc="Extension plugins for the SuperCollider3 audio synthesis server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/supercollider/sc3-plugins"
distfiles="https://github.com/supercollider/sc3-plugins/archive/Version-${version}.tar.gz
https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source-linux.tar.bz2
https://github.com/timblechmann/nova-simd/archive/${_nova_simd_hash}.tar.gz"
checksum="b8144231ea1bfc1c9d8aa6780c7e963dfb642868794abbfd8ccab418ffbbdfbe
9b2035a3a7942c61cbe89b00c35c7e16ac281c06786fe1c30dfd333194be499a
df9f280daaad56fdadb5fa75d492ee6a06762a41d7346aa473aa49c1ac9ec9c8"
post_extract() {
mv sc3-plugins-* sc3-plugins
rm -rf sc3-plugins/external_libraries/nova-simd
mv nova-simd-${_nova_simd_hash} sc3-plugins/external_libraries/nova-simd
}
pre_configure() {
configure_args+=" -DSC_PATH=${wrksrc}/SuperCollider-Source "
}
post_install() {
vmkdir usr/lib/SuperCollider/Extensions/SC3plugins/LadspaUGen
mv -v ${DESTDIR}/usr/{share,lib}/SuperCollider/Extensions/SC3plugins/LadspaUGen/ladspalist
}