void-packages/srcpkgs/rubberband/template

40 lines
1.1 KiB
Bash

# Template file for 'rubberband'
pkgname=rubberband
version=3.1.2
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="ladspa-sdk libsamplerate-devel vamp-plugin-sdk-devel fftw-devel lv2"
depends="libvamp-plugin-sdk"
short_desc="Time-stretching and pitch-shifting audio library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://breakfastquay.com/rubberband/"
changelog="https://breakfastquay.com/news.html"
distfiles="https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2"
checksum=dda7e257b14c59a1f59c5ccc4d6f19412039f77834275955aa0ff511779b98d2
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
librubberband_package() {
short_desc+=" - Runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/vamp
vmove usr/lib/ladspa
}
}
rubberband-devel_package() {
depends="librubberband>=${version}_${revision}"
short_desc+=" - Development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}