PKGBUILDs/community/audacity/PKGBUILD

60 lines
1.7 KiB
Bash
Raw Normal View History

2017-12-24 16:10:21 +00:00
# Maintainer: David Runge <dave@sleepmap.de>
# 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
2019-05-13 22:48:07 +00:00
pkgver=2.3.2
2018-10-03 13:57:43 +00:00
pkgrel=1
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')
2018-10-03 13:57:43 +00:00
# upstream enquired via mail about:
# vendors/requires older version of portaudio
# vendors/doesn't detect system version of portmidi
2018-12-22 21:10:07 +00:00
depends=('libid3tag' 'libmad' 'libsoxr' 'lilv' 'portsmf' 'soundtouch' 'suil'
'twolame' 'vamp-plugin-sdk' 'wxgtk3')
2018-10-03 13:57:43 +00:00
makedepends=('cmake' 'ffmpeg')
optdepends=('ffmpeg: additional import/export capabilities')
2017-12-24 16:10:21 +00:00
source=("https://github.com/${pkgname}/${pkgname}/archive/Audacity-${pkgver}.tar.gz")
2019-05-13 22:48:07 +00:00
sha512sums=('a59d6e9e974d5f78f5ca561e3bea31fc1b3e88f9ea60b2df7ce8bcec264d886f3fdc8f20030e11a86daff8ffeb735850b5e5f73c45fbef0bfcc58692423e7cd0')
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}"
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}"
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() {
2018-03-06 13:31:11 +00:00
cd "${pkgname}-${pkgver}"
2017-03-18 16:00:11 +00:00
make DESTDIR="${pkgdir}" install
}