void-packages/srcpkgs/audacity/template

41 lines
1.6 KiB
Bash

# Template file for 'audacity'
pkgname=audacity
version=3.3.3
revision=1
build_style=cmake
build_helper="cmake-wxWidgets-gtk3 qemu"
configure_args="-Daudacity_use_ffmpeg=loaded -Daudacity_lib_preference=system
-Daudacity_obey_system_dependencies=ON -Daudacity_conan_enabled=OFF
-Daudacity_use_portsmf=local -Daudacity_use_sbsms=local
-Daudacity_has_vst3=no"
hostmakedepends="pkg-config gettext python3"
makedepends="wxWidgets-gtk3-devel gtk+3-devel expat-devel lame-devel
libsoxr-devel portaudio-devel sqlite-devel libcurl-devel ffmpeg-devel
libid3tag-devel libmad-devel vamp-plugin-sdk-devel libogg-devel
libvorbis-devel libflac-devel lilv-devel lv2 serd-devel sord-devel
sratom-devel suil-devel portmidi-devel soundtouch-devel twolame-devel
zlib-devel libuuid-devel jack-devel wavpack-devel libsndfile-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Graphical cross-platform audio editor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, CC-BY-3.0"
homepage="https://www.audacityteam.org"
distfiles="https://github.com/audacity/audacity/releases/download/Audacity-${version}/audacity-sources-${version}.tar.gz"
checksum=3d9ff1fc6a0ecd6591f19445c77c80774d364b268da652760829cf3598e08071
CXXFLAGS="-D_FILE_OFFSET_BITS=64"
pre_configure() {
if [ "$CROSS_BUILD" ]; then
cat > "${XBPS_WRAPPERDIR}/image-compiler" <<-EOF
#!/bin/sh
/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static ${wrksrc}/${build_wrksrc}/Release/bin/image-compiler "\$@"
EOF
chmod 0755 "${XBPS_WRAPPERDIR}/image-compiler"
fi
}
post_install() {
rm ${DESTDIR}/usr/share/doc/audacity/LICENSE.txt
}