65 lines
1.8 KiB
Text
65 lines
1.8 KiB
Text
# Thanks to: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tenacity-git
|
|
pkgname=tenacity
|
|
pkgver=0_git20211022
|
|
_commit=697c0e764ccb19c1e2f3073ae08ecdac7aa710e4
|
|
pkgrel=0
|
|
pkgdesc="Multitrack audio editor"
|
|
url="https://www.tenacityteam.org/"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
cmake
|
|
samurai
|
|
lame-dev
|
|
libsndfile-dev
|
|
soxr-dev
|
|
sqlite-dev
|
|
portaudio-dev
|
|
portmidi-dev
|
|
libid3tag-dev
|
|
soundtouch-dev
|
|
libmad-dev
|
|
ffmpeg-dev
|
|
wxwidgets3.1-dev
|
|
chrpath
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-lang"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://git.sr.ht/~tenacity/tenacity/archive/$_commit.tar.gz
|
|
remove-git-dependency.patch
|
|
"
|
|
|
|
builddir="$srcdir/tenacity-$_commit"
|
|
|
|
build() {
|
|
local _arch
|
|
case "$CARCH" in
|
|
x86) _arch="-DHAVE_SSE=OFF -DHAVE_SSE2=OFF";;
|
|
esac
|
|
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
fi
|
|
cmake -B build \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH=true \
|
|
$CMAKE_CROSSOPTS \
|
|
$_arch
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
make -C build DESTDIR="$pkgdir" install
|
|
|
|
chrpath --replace /usr/lib/tenacity:/usr/lib/tenacity/modules "${pkgdir}/usr/bin/tenacity"
|
|
chrpath --delete "${pkgdir}/usr/lib/tenacity/lib-strings.so"
|
|
chrpath --delete "${pkgdir}/usr/lib/tenacity/lib-string-utils.so"
|
|
chrpath --delete "${pkgdir}/usr/lib/tenacity/lib-utility.so"
|
|
chrpath --delete "${pkgdir}/usr/lib/tenacity/modules/mod-script-pipe.so"
|
|
}
|
|
|
|
sha512sums="
|
|
13c6571dcc0102e0dfb2e300873563e0a36063376fe9b4d3ce2f08c6b8013621a12b04f6ea2d44aa99aa52bf14877719c4d0dd09422c529ef0ca124b55ea8290 tenacity-697c0e764ccb19c1e2f3073ae08ecdac7aa710e4.tar.gz
|
|
f748ef7e008c76fd4a6c6e89012f302b45b9f7e42db2cc9fed2f871009e3aaed24974f9f282d27ed85d94d150c2272182acc5a03e8b41ad5b980ce92ce14ecfd remove-git-dependency.patch
|
|
"
|