mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/zita-resampler to 1.10.1-1
This commit is contained in:
parent
3ada786de5
commit
3dcf9e1317
1 changed files with 34 additions and 36 deletions
|
@ -5,56 +5,54 @@
|
|||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - disable SSE
|
||||
|
||||
pkgname=zita-resampler
|
||||
pkgver=1.8.0
|
||||
pkgbase=zita-resampler
|
||||
pkgname=(zita-resampler zita-resampler-docs)
|
||||
pkgver=1.10.1
|
||||
pkgrel=1
|
||||
pkgdesc="A C++ library for resampling audio signals"
|
||||
url="https://kokkinizita.linuxaudio.org/linuxaudio/"
|
||||
arch=('x86_64')
|
||||
license=('GPL3')
|
||||
depends=('gcc-libs' 'glibc')
|
||||
makedepends=('libsndfile')
|
||||
optdepends=('libsndfile: for zresample and zretune')
|
||||
provides=('libzita-resampler.so')
|
||||
source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
|
||||
sha512sums=('adf1f465ac09104be5a02c1cf0f052a44b4c1a448312f3aca016a889e98cfcdebfded38f60300ad85d18ae03eadca7e8e95efb2875267bc36435ccfac881a8e7')
|
||||
b2sums=('1ba5d255fff9c66e18e6177bc7e48a4710fdf54f58c07f162f8c8801f4f449b22dea9922645e7e33b70e07739c2b381176714e704f9840305f194f3c23d66de2')
|
||||
arch=(x86_64)
|
||||
url="https://kokkinizita.linuxaudio.org/linuxaudio"
|
||||
license=(GPL3)
|
||||
makedepends=(gcc-libs glibc libsndfile)
|
||||
source=($url/downloads/$pkgname-$pkgver.tar.xz)
|
||||
sha512sums=('ba95286b0744df393194f4f94a8aad62f6c088cf80f6be71482ed55beef6503a9bab6644f2565b69002247611fcf0fb6561fc0072578466a0133311721b43cf5')
|
||||
b2sums=('b8871899b7e6cac9b46df3c45c5bb1d8e9c9edd41bcbc5944098d9c4eee2ff4e4d216f97b3bfa96ac43082b5333de26201d6cba9eaa152efd20e8c5017478391')
|
||||
|
||||
prepare() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
# FS#36248 - strip march=native
|
||||
sed -e '/native/d' \
|
||||
-i {source,apps}/Makefile
|
||||
# removing local call to ldconfig
|
||||
sed -e 's/ldconfig/& -N $(DESTDIR)\/$(LIBDIR)/' \
|
||||
-i source/Makefile
|
||||
# fix use of BINDIR without preceeding DESTDIR
|
||||
# fix use of MANDIR without preceeding DESTDIR
|
||||
sed -e 's/\ $(BINDIR)/\ $(DESTDIR)$(BINDIR)/' \
|
||||
-e 's/\ $(MANDIR)/\ $(DESTDIR)$(MANDIR)/' \
|
||||
-i apps/Makefile
|
||||
cd $pkgname-$pkgver
|
||||
# remove march=native
|
||||
sed -e '/native/d' -i {source,apps}/Makefile
|
||||
# disable SSE
|
||||
sed -e '/ENABLE_SSE2/d' \
|
||||
-i source/Makefile
|
||||
sed -e '/ENABLE_SSE2/d' -i source/Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
cd $pkgname-$pkgver
|
||||
# libs
|
||||
make -C source
|
||||
# create lib link for building apps
|
||||
ln -sv "lib${pkgname}.so.${pkgver}" "source/lib${pkgname}.so"
|
||||
ln -sv lib$pkgname.so.$pkgver source/lib$pkgname.so
|
||||
# apps
|
||||
make LDFLAGS+=" -L../source" CXXFLAGS+=" -I../source" -C apps
|
||||
# cleanup link
|
||||
rm -rv "source/lib${pkgname}.so"
|
||||
rm -rv source/lib$pkgname.so
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
make -C source DESTDIR="$pkgdir/" PREFIX=/usr SUFFIX="" install
|
||||
make -C apps DESTDIR="$pkgdir/" PREFIX=/usr install
|
||||
# docs
|
||||
install -vDm 644 {AUTHORS,README} docs/* \
|
||||
-t "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
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/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue