Advertisement
Drommer

audacity-wxgtk2 PKGBUILD

Apr 23rd, 2023
1,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.18 KB | Source Code | 0 0
  1. # Maintainer: evorster <[email protected]>
  2. # Contributor: osch <[email protected]>
  3.  
  4. pkgname=audacity-wxgtk2
  5. pkgver=3.2.5
  6. pkgrel=1
  7. pkgdesc="Record and edit audio files"
  8. arch=('x86_64')
  9. url="https://audacityteam.org"
  10. license=('GPL2' 'CCPL')
  11. groups=('pro-audio')
  12. depends=('libmad' 'libid3tag' 'gtk2' 'glib2' 'soundtouch' 'ffmpeg' 'vamp-plugin-sdk'
  13. 'portsmf' 'portmidi' 'twolame' 'suil' 'lilv' 'lv2' 'serd' 'sord' 'sratom' 'python'
  14. 'flac' 'libvorbis' 'libogg' 'vamp-plugin-sdk' 'portaudio' 'libsoxr' 'libsndfile' 'lame'
  15. 'expat' 'alsa-lib' 'jack' 'util-linux' 'util-linux-libs' 'curl' 'zlib')
  16. makedepends=('cmake' 'autoconf' 'automake' 'libtool' 'git' 'conan1' 'vst3sdk')
  17. provides=("audacity")
  18. conflicts=("audacity")
  19. source=("https://github.com/audacity/audacity/archive/Audacity-${pkgver}.tar.gz")
  20. sha256sums=('7ee4f6f3ea985114b8fda578c67faf163e1d2cc8b2f0bad1b259a9367d2ccb1b')
  21.  
  22. prepare() {
  23.   cd "audacity-Audacity-${pkgver}"
  24.  
  25.   sed -i -e '/#include <iterator>/i #include <limits>' libraries/lib-utility/MemoryX.h
  26.   sed -i 's/#THEME_PREFS/THEME_PREFS/g' src/Experimental.cmake
  27.  
  28.   mkdir -p build
  29.   cd build
  30.  
  31.   depsDir=$(readlink -f ./.offline)
  32.   export CONAN_USER_HOME="$depsDir/conan"
  33.  
  34.   conan config home
  35.   conan config init
  36.   conan config set storage.download_cache="$CONAN_USER_HOME/download_cache"
  37.   conan remove "*" --src --builds --force
  38. }
  39.  
  40. build() {
  41.   cd "audacity-Audacity-${pkgver}"/build
  42.  
  43.   export VST3SDK='/usr/share/vst3sdk'
  44.   export CFLAGS+=" -DNDEBUG"
  45.   export CXXFLAGS+=" -DNDEBUG"
  46.  
  47.   cmake -G "Unix Makefiles" \
  48.         -DCMAKE_BUILD_TYPE=Release \
  49.         -DCMAKE_INSTALL_PREFIX=/usr \
  50.         -DAUDACITY_BUILD_LEVEL=2 \
  51.         -Daudacity_has_networking=off \
  52.         -Daudacity_lib_preference=system \
  53.         -Daudacity_use_expat=system \
  54.         -Daudacity_use_ffmpeg=loaded \
  55.         -Daudacity_use_zlib=system \
  56.         -Daudacity_use_curl=system \
  57.         -Daudacity_use_wxwidgets=local \
  58.         -Daudacity_use_vst3sdk=system \
  59.         ..
  60.  
  61.   make
  62.   conan remove "*" --src --builds --force
  63. }
  64.  
  65. package() {
  66.   cd "audacity-Audacity-${pkgver}"/build
  67.   make DESTDIR="${pkgdir}" install
  68.   chmod -R go=u "${pkgdir}"
  69.   chmod -R go-w "${pkgdir}"
  70. }
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement