Date: Monday, September 3, 2018 @ 14:06:25 Author: arojas Revision: 333216
Update to 0.3.2 Modified: zita-alsa-pcmi/trunk/PKGBUILD ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 22 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-09-03 14:05:18 UTC (rev 333215) +++ PKGBUILD 2018-09-03 14:06:25 UTC (rev 333216) @@ -1,47 +1,54 @@ # $Id$ -# Maintainer: speps <speps at aur dot archlinux dot org> +# Maintainer: David Runge <d...@sleepmap.de> +# Contributor: speps <speps at aur dot archlinux dot org> pkgname=zita-alsa-pcmi -pkgver=0.2.0 -pkgrel=4 +pkgver=0.3.2 +pkgrel=1 pkgdesc="The successor of clalsadrv, provides easy access to ALSA PCM devices." -arch=(x86_64) -url="http://kokkinizita.linuxaudio.org/linuxaudio/" +arch=('x86_64') +url="https://kokkinizita.linuxaudio.org/linuxaudio/" license=('GPL3') depends=('gcc-libs' 'alsa-lib') -source=("${url}downloads/$pkgname-$pkgver.tar.bz2") -sha512sums=('6b521dc8bef96a6ee73bc2accd3c7d0641e9a4f3d955868cd3fe04ae46f15a1b1ffaa45d56518f54f4fdf9f68f629e3036dca294936015205c20f01d55338e96') +source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/$pkgname-$pkgver.tar.bz2") +sha512sums=('9d6040d0ec636ebcf02a033cdc017105bbed8e0ddb99584890d8e027402a85791e0983a1a9cd677dc6f1da0ced530afb5e65a8e863329a5e785ef09e0b7124f0') prepare() { - cd "$srcdir/$pkgname-$pkgver/libs" - # call ldconfig locally - sed -i 's/ldconfig/& -N $(DESTDIR)$(PREFIX)\/$(LIBDIR)/' Makefile + cd "$pkgname-$pkgver" + # remove optimization + # call ldconfig in local context + sed -e '/native/d' \ + -e 's/ldconfig/& -N $(DESTDIR)\/$(LIBDIR)/' \ + -i source/Makefile + # fix use of BINDIR without preceeding DESTDIR + sed -e 's/\ $(BINDIR)/\ $(DESTDIR)$(BINDIR)/' \ + -i apps/Makefile } build() { - cd "$srcdir/$pkgname-$pkgver/libs" - - # libs - make PREFIX=/usr - + cd "$pkgname-$pkgver/source" + make # create lib link for building apps - ln -s lib$pkgname.so.$pkgver lib$pkgname.so + ln -sv lib$pkgname.so.$pkgver lib$pkgname.so # apps cd ../apps - CXXFLAGS+=" -I../libs" \ - LDFLAGS+=" -L../libs" \ - make PREFIX=/usr + CXXFLAGS+=" -I../source" \ + LDFLAGS+=" -L../source" \ + make + + rm -v ../source/lib$pkgname.so } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" # libs - make -C libs DESTDIR="$pkgdir/" PREFIX=/usr LIBDIR=lib install + make -C source DESTDIR="$pkgdir/" PREFIX=/usr SUFFIX="" install # apps - make -C apps DESTDIR="$pkgdir/" PREFIX=/usr LIBDIR=lib install + make -C apps DESTDIR="$pkgdir/" PREFIX=/usr install } # vim:set ts=2 sw=2 et: +