[community-staging] -> [community] 'audacity-1:3.1.3-3' move
packagesA/audacity/pipeline/head This commit looks good
Details
packagesA/audacity/pipeline/head This commit looks good
Details
parent
8bf54d4f24
commit
95e8542d32
@ -1,161 +0,0 @@
|
||||
# Maintainer: Nathan Owens <ndowens@artixlinux.org>
|
||||
# Contributor: Eric Bélanger <eric@archlinux.org>
|
||||
|
||||
_name=Audacity
|
||||
pkgbase=audacity
|
||||
pkgname=(audacity audacity-docs)
|
||||
pkgver=3.1.3
|
||||
pkgrel=3
|
||||
epoch=1
|
||||
pkgdesc="A program that lets you manipulate digital audio waveforms"
|
||||
arch=(x86_64)
|
||||
url="https://audacityteam.org"
|
||||
license=(GPL3)
|
||||
groups=(pro-audio)
|
||||
makedepends=(
|
||||
alsa-lib
|
||||
chrpath
|
||||
cmake
|
||||
ffmpeg4.4
|
||||
flac
|
||||
gcc-libs
|
||||
glibc
|
||||
gdk-pixbuf2
|
||||
glib2
|
||||
gtk3
|
||||
jack
|
||||
lame
|
||||
libid3tag
|
||||
libmad
|
||||
libogg
|
||||
libsbsms
|
||||
libsndfile
|
||||
libsoxr
|
||||
libvorbis
|
||||
lilv
|
||||
lv2
|
||||
portaudio
|
||||
portmidi
|
||||
portsmf
|
||||
python
|
||||
soundtouch
|
||||
sqlite
|
||||
suil
|
||||
twolame
|
||||
wxwidgets-gtk3
|
||||
vamp-plugin-sdk
|
||||
)
|
||||
options=(debug)
|
||||
source=(
|
||||
$_name-$pkgver-Source.tar.gz::https://github.com/$pkgbase/$pkgbase/releases/download/Audacity-$pkgver/$pkgbase-$pkgver-source.tar.gz
|
||||
https://github.com/$pkgbase/$pkgbase/releases/download/Audacity-$pkgver/$pkgbase-manual-$pkgver.tar.gz
|
||||
$pkgbase-3.1.3-wxbitmap_constructor.patch::https://github.com/audacity/audacity/pull/2776/commits/342c4b588f2f069a2df2157ac166237a54277b3a.patch
|
||||
$pkgbase-3.1.3-wxwidgets_3.1.6.patch::https://github.com/audacity/audacity/pull/2776/commits/efc11c4ac50ac51cd71d4dcfa84e63b11000c3f5.patch
|
||||
)
|
||||
sha512sums=('f3bb9a6cbf90c40d50f47bc296cf677e799fb8beb74e21ea3cd389de35a58ccd7df898f176a9326b682736b5dd9a9cfe56e83f56f2428f8ababb32037397fb53'
|
||||
'077fcf3b3d1650c7eab62d9e324d13e5b2f14079ab4b0b105bd3689fee1cc3c56936997b8f4b5c3d44b9d003419acb604f4065129a6cfd6b254b5e10a857887f'
|
||||
'29998229eac80e2b54cf457ebff6a56d8dad30e2b58f42956dea313610bd9d012bfa3ea6546fe520fcd05e45e9a96f1a17bab68fc3254fff56743c20c14c0e92'
|
||||
'26a8910d0e86f96fd58ac7dfa9da823dee16fb37640632ba5cbc6687666acc628589be6a115435d01be02b898dbfc2774151df92854d6380349365731148736d')
|
||||
b2sums=('e2f9160b244bef703ddb2808246ab22e499c9c68283b3ff648343c397d5760c08b9761f4c57bcab6bcbe42b0d4ea01ce6234bdf531de588871706ef41e1e841e'
|
||||
'5f3106193b81210f8fd0fe9c7034ce3f7306e641fa4024f3120726b2f8fba7e9a48719813367ca56df85b84ac141cd3ac850cfcb69d0a1f24e932e24dac1f068'
|
||||
'fb33a3b5db4f292578c1c38db1b4122c1c2081d91ed437b78b0357bbea565d347e8c6b40f3989bce1b3cbf4c3513b63f244f3443f463166fc4616485704d148a'
|
||||
'71d23b62d7d73131cb264141422b340e1a998d432aef0161bf1544efdc07e51f7852559ebcfe15a7df17b974fad1c75872dcb6ada6d311f54ce67df26f530851')
|
||||
|
||||
prepare() {
|
||||
patch -Np1 -d $_name-$pkgver-Source -i ../$pkgbase-3.1.3-wxbitmap_constructor.patch
|
||||
patch -Np1 -d $_name-$pkgver-Source -i ../$pkgbase-3.1.3-wxwidgets_3.1.6.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
local cmake_options=(
|
||||
-D CMAKE_BUILD_TYPE=None
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D audacity_conan_enabled=OFF
|
||||
-D audacity_has_networking=OFF
|
||||
-D audacity_has_crashreports=OFF
|
||||
-D audacity_has_updates_check=OFF
|
||||
-D audacity_has_sentry_reporting=OFF
|
||||
-D audacity_lib_preference=system
|
||||
-D audacity_obey_system_dependencies=ON
|
||||
)
|
||||
|
||||
artix-cmake "${cmake_options[@]}" -B build -S $_name-$pkgver-Source -Wno-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
package_audacity() {
|
||||
license+=(BSD)
|
||||
depends=(
|
||||
alsa-lib
|
||||
flac
|
||||
gcc-libs
|
||||
glibc
|
||||
gdk-pixbuf2
|
||||
glib2
|
||||
gtk3
|
||||
jack
|
||||
lame
|
||||
libid3tag
|
||||
libmad
|
||||
libogg
|
||||
libsbsms
|
||||
libsndfile
|
||||
libsoxr
|
||||
libvorbis
|
||||
lilv
|
||||
portaudio
|
||||
portmidi
|
||||
portsmf
|
||||
python
|
||||
soundtouch
|
||||
sqlite
|
||||
suil
|
||||
twolame
|
||||
wxwidgets-gtk3
|
||||
vamp-plugin-sdk
|
||||
)
|
||||
depends+=(libFLAC.so libFLAC++.so libasound.so libgdk-3.so
|
||||
libgdk_pixbuf-2.0.so libglib-2.0.so libgobject-2.0.so libgtk-3.so
|
||||
libid3tag.so libjack.so liblilv-0.so libogg.so libportaudio.so libportmidi.so
|
||||
libsbsms.so libsndfile.so libsuil-0.so libtwolame.so libvamp-hostsdk.so
|
||||
libvorbis.so libvorbisenc.so libvorbisfile.so libportSMF.so)
|
||||
optdepends=(
|
||||
'audacity-docs: for documentation'
|
||||
'ffmpeg4.4: for additional import/export capabilities'
|
||||
)
|
||||
|
||||
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -vDm 644 $_name-$pkgver-Source/lib-src/libnyquist/nyquist/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.nyquist"
|
||||
|
||||
# remove unsafe RPATH: https://github.com/audacity/audacity/issues/3289
|
||||
(
|
||||
cd "$pkgdir/usr/lib/$pkgname"
|
||||
for _lib in *.so; do
|
||||
chrpath --delete "$_lib"
|
||||
chmod 755 "$_lib"
|
||||
done
|
||||
)
|
||||
(
|
||||
cd "$pkgdir/usr/lib/$pkgname/modules"
|
||||
for _lib in *.so; do
|
||||
chrpath --delete "$_lib"
|
||||
chmod 755 "$_lib"
|
||||
done
|
||||
)
|
||||
# upstream installes a non-compliant script that we don't need:
|
||||
# https://github.com/audacity/audacity/issues/3290
|
||||
rm -frv "$pkgdir/usr/$pkgname"
|
||||
}
|
||||
|
||||
package_audacity-docs() {
|
||||
license+=(CCPL)
|
||||
pkgdesc+=" - documentation"
|
||||
|
||||
install -vdm 755 "$pkgdir/usr/share/doc/$pkgbase/html/"
|
||||
cp -av help/manual/* "$pkgdir/usr/share/doc/$pkgbase/html/"
|
||||
}
|
Loading…
Reference in new issue