contrib/audacity/Pkgfile

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-04-22 16:47:22 +02:00
# Description: Audio recording and editing program
# URL: https://www.audacityteam.org/
# Maintainer: Danny Rawlins, crux at romster dot me
2020-07-08 12:00:36 +02:00
# Depends on: jack-audio-connection-kit libid3tag libmad libsoxr lilv soundtouch suil twolame vamp-plugin-sdk wxgtk3
2020-04-22 16:47:22 +02:00
# Optional: portsmf
name=audacity
2020-07-08 12:00:36 +02:00
version=2.4.2
2020-05-24 04:19:47 +02:00
release=1
2020-07-08 12:00:36 +02:00
source=(https://github.com/$name/$name/archive/Audacity-$version.tar.gz
lame.pc)
2020-04-22 16:47:22 +02:00
build() {
2020-07-08 12:00:36 +02:00
# included in src/AboutDialog.cpp but not supplied in source tarball
touch $name-Audacity-$version/include/RevisionIdent.h
# cmake can't find libmp3lame without a .pc file
cp $SRC/lame.pc $name-Audacity-$version/lame.pc
export WX_CONFIG=wx-config-gtk3
export PKG_CONFIG_PATH="$PWD:$PKG_CONFIG_PATH"
[ -e '/usr/bin/ccache' ] && PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
cmake -S$name-Audacity-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-07-08 12:00:36 +02:00
# install -vDm 644 plug-ins/*.ny -t $PKG/usr/share/$name/plug-ins
# install -vDm 644 nyquist/*.lsp -t $PKG/usr/share/$name/nyquist
2020-05-24 04:19:47 +02:00
2020-04-22 16:47:22 +02:00
rm -r $PKG/usr/share/{doc,locale}
}