void-packages/srcpkgs/audacity/template

45 lines
1.8 KiB
Bash

# Template file for 'audacity'
pkgname=audacity
version=3.4.2
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=OFF -Daudacity_has_crashreports=OFF
-Daudacity_has_networking=OFF -Daudacity_has_sentry_reporting=OFF
-Daudacity_has_updates_check=OFF -DAUDACITY_BUILD_LEVEL=2"
hostmakedepends="pkg-config gettext python3"
makedepends="wxWidgets-gtk3-devel gtk+3-devel expat-devel lame-devel
libsoxr-devel portaudio-devel sqlite-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
opusfile-devel rapidjson"
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"
changelog="https://github.com/audacity/audacity/raw/master/CHANGELOG.txt"
distfiles="https://github.com/audacity/audacity/releases/download/Audacity-${version}/audacity-sources-${version}.tar.gz"
checksum=f28dd718d2c5a2aa9f207b8351443a90c1f02b65378ca94bcc7febda42635e48
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
}