PKGBUILDs/community/audacity/PKGBUILD

81 lines
3.1 KiB
Bash
Raw Normal View History

2019-11-13 19:23:59 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
2017-12-24 16:10:21 +00:00
# Contributor: Eric Bélanger <eric@archlinux.org>
2017-03-18 16:00:11 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --disable-sse
2018-10-03 19:44:33 +00:00
# - explicitly link v5/v6 with libatomic
2017-03-18 16:00:11 +00:00
pkgname=audacity
2020-05-21 18:19:44 +00:00
pkgver=2.4.1
2022-01-19 13:53:01 +00:00
pkgrel=7
2018-12-22 21:10:07 +00:00
epoch=1
2017-03-18 16:00:11 +00:00
pkgdesc="A program that lets you manipulate digital audio waveforms"
2017-12-10 22:36:37 +00:00
arch=('x86_64')
2017-12-24 16:10:21 +00:00
url="https://audacityteam.org"
license=('GPL2' 'CCPL')
2018-06-03 16:43:38 +00:00
groups=('pro-audio')
2020-05-17 17:58:49 +00:00
# upstream hard codes/vendors portaudio/portmidi
# https://github.com/audacity/audacity/issues/522
depends=('expat' 'gcc-libs' 'gdk-pixbuf2' 'glibc' 'libmad'
'libsoxr' 'soundtouch' 'wxgtk3')
makedepends=('alsa-lib' 'cmake' 'ffmpeg' 'flac' 'glib2' 'gtk3' 'jack' 'lame'
'libid3tag' 'libogg' 'libsndfile' 'libvorbis' 'lilv' 'lv2' 'portsmf' 'suil'
'twolame' 'vamp-plugin-sdk')
2018-10-03 13:57:43 +00:00
optdepends=('ffmpeg: additional import/export capabilities')
2020-05-28 00:35:47 +00:00
source=("https://github.com/${pkgname}/${pkgname}/archive/Audacity-${pkgver}.tar.gz"
"${pkgname}-2.4.1-resize_crash.patch::https://github.com/dvzrv/audacity/commit/d7e769040b508aaf15ce7b51cc1a565d41cdb079.patch")
sha512sums=('2f0a3f7e24dce91ae520e285dbb05778b68e0fe37b8ded55ac568b5f8135069951b3986764adc5d0791c165b283a3c19596f1d6f51ba17028e0eb04558c63f25'
'9c111b6d74ff0cd76f5f2db0ce513bf1c5400c41497220c87ea694f5b2b75c1e6bc1a817dd1fb2e81ed5ddcf2c610bb334a091c2cd8f7bae1111a911f47cab4b')
2017-12-24 16:10:21 +00:00
prepare() {
2018-03-06 13:31:11 +00:00
mv -v "${pkgname}-Audacity-${pkgver}" "${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
2020-05-28 00:35:47 +00:00
# fix crash on resize: https://bugs.archlinux.org/task/66771
patch -Np1 -i "../${pkgname}-2.4.1-resize_crash.patch"
2018-10-03 13:57:43 +00:00
autoreconf -vfi
2017-12-24 16:10:21 +00:00
}
2017-03-18 16:00:11 +00:00
build() {
2018-03-06 13:31:11 +00:00
cd "${pkgname}-${pkgver}"
2020-05-17 17:58:49 +00:00
# the cmake setup is still more complicated and error-prone than the
# autotools setup:
# https://github.com/audacity/audacity/issues/519
# https://github.com/audacity/audacity/issues/520
# https://github.com/audacity/audacity/issues/521
2018-10-03 19:44:33 +00:00
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LIBS="-latomic"
WX_CONFIG=wx-config-gtk3 LIBS=$LIBS ./configure --prefix="/usr" \
2017-12-24 16:10:21 +00:00
--with-libsndfile="system" \
--with-ffmpeg="system" \
--with-expat="system" \
--with-lame="system" \
--with-libsoxr="system" \
2018-10-03 13:57:43 +00:00
--with-portaudio \
--with-portmidi \
2018-05-14 23:35:02 +00:00
--with-libflac \
2017-12-24 16:10:21 +00:00
--with-libid3tag \
--with-libsamplerate \
--with-sbsms \
--with-soundtouch \
--with-libtwolame \
--with-libvorbis \
--with-lv2 \
--disable-sse
2017-03-18 16:00:11 +00:00
make
}
package() {
2020-05-17 17:58:49 +00:00
depends+=('libFLAC.so' 'libFLAC++.so' 'libasound.so' 'libgdk-3.so'
'libglib-2.0.so' 'libgobject-2.0.so' 'libgtk-3.so' 'libid3tag.so'
'libjack.so' 'liblilv-0.so' 'libogg.so' 'libsndfile.so' 'libsuil-0.so'
'libtwolame.so' 'libvamp-hostsdk.so' 'libvorbis.so' 'libvorbisenc.so'
'libvorbisfile.so' 'libportSMF.so')
2018-03-06 13:31:11 +00:00
cd "${pkgname}-${pkgver}"
2017-03-18 16:00:11 +00:00
make DESTDIR="${pkgdir}" install
2020-05-21 23:47:38 +00:00
# install libnyquist plugins, missing since 2.4.0:
# https://bugs.archlinux.org/task/66733
install -vDm 644 plug-ins/*.ny -t "${pkgdir}/usr/share/${pkgname}/plug-ins"
2020-05-24 00:53:30 +00:00
# install missing *.lsp files for nyquist plugins, missing since 2.4.0:
# https://bugs.archlinux.org/task/66739
install -vDm 644 nyquist/*.lsp -t "${pkgdir}/usr/share/${pkgname}/nyquist"
2017-03-18 16:00:11 +00:00
}