# maintainer (x86_64): Giuseppe CalĂ  # contributor: (x86_64): Anke Boersma _pkgbasename=libsamplerate pkgname=lib32-$_pkgbasename pkgver=0.1.8 pkgrel=2 pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio (32-bit)" arch=('x86_64') url="http://www.mega-nerd.com/SRC/index.html" license=('GPL') depends=('lib32-libsndfile' $_pkgbasename=$pkgver) makedepedns=('gcc-multilib') options=('!libtool') source=(http://www.mega-nerd.com/SRC/libsamplerate-${pkgver}.tar.gz) md5sums=('1c7fb25191b4e6e3628d198a66a84f47') build() { cd ${srcdir}/${_pkgbasename}-${pkgver} export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" ./configure --prefix=/usr --libdir=/usr/lib32 make } package() { cd ${srcdir}/${_pkgbasename}-${pkgver} make DESTDIR=${pkgdir} install rm -rf "${pkgdir}"/usr/{include,share,bin} }