|
1 | 1 | pkgname="tenacity-git" |
2 | | -source=("https://codeberg.org/tenacityteam/tenacity.git") |
| 2 | +gives="tenacity" |
| 3 | +source=("git+https://codeberg.org/tenacityteam/tenacity.git" |
| 4 | + "tenacity-libnyquist::git+https://codeberg.org/tenacityteam/libnyquist.git") |
| 5 | +pkgver="1.3.3" |
3 | 6 | arch=("any") |
4 | | -pkgver="1.3.1" |
5 | | -makedepends=("python3-pip" "build-essential" "ninja-build" "libavcodec-dev" "libavformat-dev" "libavutil-dev" "libavdevice-dev" "libavfilter-dev" "libpostproc-dev" "libportsmf-dev" "libflac++-dev" "libglib2.0-dev" "libgtk-3-dev" "libid3tag0-dev" "libjack-jackd2-dev" "liblilv-dev" "libmad0-dev" "libmp3lame-dev" "libogg-dev" "libpng-dev" "portaudio19-dev" "libportmidi-dev" "libserd-dev" "libsndfile1-dev" "libsord-dev" "libsoundtouch-dev" "libsoxr-dev" "libsuil-dev" "libtwolame-dev" "vamp-plugin-sdk" "libvorbis-dev" "lv2-dev" "zlib1g-dev" "cmake" "ninja-build" "libjpeg-dev" "libtiff-dev" "liblzma-dev" "libsqlite3-dev" "libwxgtk3.2-dev" "libjsoncpp-dev" "libzip-dev" "zipcmp" "zipmerge" "ziptool" "libzip4" "gettext") |
6 | | -depends=("libc6" "libexpat1" "libgcc-s1" "libgdk-pixbuf-2.0-0" "libglib2.0-0" "libgtk-3-0" "libid3tag0" "liblilv-0-0" "libmad0" "libogg0" "libportaudio2" "libsndfile1" "libsoundtouch1" "libsoxr0" "libstdc++6" "libsuil-0-0" "libtwolame0" "libvamp-hostsdk3v5" "libvorbis0a" "libvorbisenc2" "libvorbisfile3") |
7 | | -depends_bookworm=("libavcodec59" "libavformat59" "libavutil57" "libflac++10" "libflac12" "libportsmf0" "libwxbase3.2-1" "libwxgtk3.2-1") |
8 | | -depends_kinetic=("libavcodec59" "libavformat59" "libavutil57" "libflac++6v5" "libflac8" "libportsmf0v5" "libwxbase3.2-0" "libwxgtk3.2-0") |
9 | | -depends_lunar=("libavcodec59" "libavformat59" "libavutil57" "libflac++10" "libflac8" "libportsmf0v5" "libwxbase3.2-0" "libwxgtk3.2-0") |
10 | | -if [[ ! "bookworm kinetic lunar" =~ ${DISTRO#*:} ]]; then |
11 | | - depends+=("libavcodec60" "libavformat60" "libavutil58" "libflac++10" "libflac12" "libportsmf0v5" "libwxbase3.2-1" "libwxgtk3.2-1") |
12 | | -fi |
13 | | -replaces=("audacity") |
14 | 7 | pkgdesc="FLOSS Audacity Fork. No telemetry, crash reports and other shenanigans like that!" |
| 8 | +makedepends=("clang" "chrpath" "cmake" "pkg-config" "libelf-dev" "libavcodec-dev" "libavformat-dev" "libavutil-dev" "libavdevice-dev" "libavfilter-dev" "libpostproc-dev" "libportsmf-dev" "libflac++-dev" "libglib2.0-dev" "libgtk-3-dev" "libid3tag0-dev" "libjack-jackd2-dev" "liblilv-dev" "libmad0-dev" "libmp3lame-dev" "libogg-dev" "libpng-dev" "portaudio19-dev" "libportmidi-dev" "libserd-dev" "libsndfile1-dev" "libsord-dev" "libsoundtouch-dev" "libsoxr-dev" "libsuil-dev" "libtwolame-dev" "vamp-plugin-sdk" "libvorbis-dev" "lv2-dev" "zlib1g-dev" "cmake" "libjpeg-dev" "libtiff-dev" "liblzma-dev" "libsqlite3-dev" "libwxgtk3.2-dev" "libjsoncpp-dev" "libzip-dev" "zipcmp" "zipmerge" "ziptool" "gettext") |
| 9 | + |
| 10 | +depends=("libc6" "libexpat1" "libgcc-s1" "libgdk-pixbuf-2.0-0" "libglib2.0-0" "libgtk-3-0" "libid3tag0" "liblilv-0-0" "libmad0" "libogg0" "libportaudio2" "libsndfile1" "libsoundtouch1" "libsoxr0" "libstdc++6" "libsuil-0-0" "libtwolame0" "libvamp-hostsdk3v5" "libvorbis0a" "libvorbisenc2" "libvorbisfile3" "libportmidi0" "libzip-dev" "libjsoncpp-dev" "libavcodec-dev" "libavformat-dev" "libavutil-dev" "libflac++10" "libflac12" "libportsmf-dev" "libwxbase3.2-1" "libwxgtk3.2-1") |
15 | 11 |
|
16 | 12 | optdepends=("ffmpeg: additional import/export capabilities") |
17 | | -maintainer=("echometerain <echometer@disroot.org>") |
18 | | -incompatible=("ubuntu:bionic" "ubuntu:focal" "ubuntu:jammy" "debian:stretch" "debian:buster" "debian:bullseye") |
| 13 | +maintainer=("echometerain <echometer@disroot.org>" "xdavius <xdavius@github.com>") |
| 14 | +external_connection=true |
19 | 15 |
|
20 | 16 | prepare() { |
21 | | - modern=("devel" "sid" "lunar" "bookworm" "mantic" "noble" "trixie" "testing" "unstable") |
22 | | - # shellcheck disable=SC2076 |
23 | | - if [[ " ${modern[*]} " =~ " ${DISTRO#*:} " ]]; then |
24 | | - pyhack=("--break-system-packages") |
25 | | - else |
26 | | - pyhack=() |
27 | | - fi |
28 | | - cd "tenacity" |
29 | | - pip3 install conan "${pyhack[@]}" |
| 17 | + cd tenacity |
| 18 | + git submodule init |
| 19 | + git config submodule.vcpkg.update none |
| 20 | + git config submodule.lib-src/libnyquist.url "${srcdir}/tenacity-libnyquist" |
| 21 | + git -c protocol.file.allow=always submodule update |
| 22 | + |
| 23 | + cd images/icons |
| 24 | + for i in *; do # fix for png icons not following hicolor category folders |
| 25 | + cd "${i}" |
| 26 | + mkdir -p apps |
| 27 | + [[ -f tenacity.png ]] && mv tenacity.png apps |
| 28 | + cd .. |
| 29 | + done |
| 30 | + cd ../.. |
| 31 | + mkdir -p build |
30 | 32 | } |
31 | 33 |
|
32 | 34 | build() { |
33 | | - cd "tenacity" |
34 | | - cmake -G Ninja -S . -B build \ |
35 | | - -D CMAKE_BUILD_TYPE=Release \ |
36 | | - -D CMAKE_INSTALL_PREFIX="${pkgdir}/usr/local" |
37 | | - cmake --build build |
| 35 | + cd tenacity/build |
| 36 | + CC=clang CXX=clang++ cmake \ |
| 37 | + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
| 38 | + -DCMAKE_INSTALL_PREFIX=/usr \ |
| 39 | + -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config \ |
| 40 | + -Wno-dev \ |
| 41 | + .. |
| 42 | + cmake --build . |
| 43 | + make -j"${NCPU}" . |
38 | 44 | } |
39 | 45 |
|
40 | 46 | package() { |
41 | | - cd "tenacity" |
42 | | - cmake --install build |
| 47 | + cd tenacity/build |
| 48 | + make DESTDIR="${pkgdir}" install |
| 49 | + [[ -f "${pkgdir}/usr/tenacity" ]] && rm "${pkgdir}/usr/tenacity" # remove unused launch script |
| 50 | + |
| 51 | + mv "${pkgdir}/usr/share/pixmaps/gnome-mime-application-x-audacity-project.xpm" \ |
| 52 | + "${pkgdir}/usr/share/pixmaps/gnome-mime-application-x-tenacity-project.xpm" |
| 53 | + |
| 54 | + chrpath --delete "${pkgdir}"/usr/lib/x86_64-linux-gnu/tenacity/*.so |
| 55 | + chrpath --delete "${pkgdir}"/usr/lib/x86_64-linux-gnu/tenacity/modules/*.so |
43 | 56 | } |
0 commit comments