PKGBUILDs/extra/zita-resampler/PKGBUILD

66 lines
1.8 KiB
Bash
Raw Normal View History

2021-06-28 23:27:18 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: speps <speps at aur dot archlinux dot org>
# Contributor: Philipp Überbacher <murks at lavabit dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable SSE
2023-02-17 14:04:14 +00:00
pkgbase=zita-resampler
2023-09-03 15:41:13 +00:00
pkgname=(
zita-resampler
zita-resampler-docs
)
pkgver=1.11.2
2024-07-14 12:57:28 +00:00
pkgrel=2
2021-06-28 23:27:18 +00:00
pkgdesc="A C++ library for resampling audio signals"
2023-02-17 14:04:14 +00:00
arch=(x86_64)
url="https://kokkinizita.linuxaudio.org/linuxaudio"
2023-09-03 15:41:13 +00:00
license=(GPL-3.0-or-later)
makedepends=(
gcc-libs
glibc
libsndfile
)
2023-02-17 14:04:14 +00:00
source=($url/downloads/$pkgname-$pkgver.tar.xz)
2023-09-03 15:41:13 +00:00
sha512sums=('1598c9ead4bf858d3a11677c9512932077e1d0b83588682eba402820936fa1cfc5fe1112abbecd945469b4ae2f7a6f59938a5fbb0fdd79de3b0a3a73703b03dd')
b2sums=('627b309b38b238902b1cad2cb0963d0182f8f4cc4bc72efcd2b9ecc9810f019968c141e31ffb94110e8c4ca781e1c57b7d3393a3d4699b3f90873958b34ce47c')
2021-06-28 23:27:18 +00:00
prepare() {
2023-02-17 14:04:14 +00:00
cd $pkgname-$pkgver
# remove march=native
sed -e '/native/d' -i {source,apps}/Makefile
2021-06-28 23:27:18 +00:00
# disable SSE
2023-02-17 14:04:14 +00:00
sed -e '/ENABLE_SSE2/d' -i source/Makefile
2021-06-28 23:27:18 +00:00
}
build() {
2023-02-17 14:04:14 +00:00
cd $pkgname-$pkgver
2021-06-28 23:27:18 +00:00
# libs
make -C source
# create lib link for building apps
2023-02-17 14:04:14 +00:00
ln -sv lib$pkgname.so.$pkgver source/lib$pkgname.so
2021-06-28 23:27:18 +00:00
# apps
make LDFLAGS+=" -L../source" CXXFLAGS+=" -I../source" -C apps
# cleanup link
2023-02-17 14:04:14 +00:00
rm -rv source/lib$pkgname.so
2021-06-28 23:27:18 +00:00
}
2023-02-17 14:04:14 +00:00
package_zita-resampler() {
depends=(gcc-libs glibc)
optdepends=(
'libsndfile: for zresample and zretune'
'zita-resampler-docs: for documentation'
)
provides=(libzita-resampler.so)
for location in $pkgbase-$pkgver/{source,apps}; do
make DESTDIR="$pkgdir/" PREFIX=/usr SUFFIX="" install -C $location
done
}
package_zita-resampler-docs() {
pkgdesc+=" - documentation"
install -vDm 644 $pkgbase-$pkgver/{AUTHORS,README,docs/*} -t "$pkgdir/usr/share/doc/$pkgbase/"
2021-06-28 23:27:18 +00:00
}