lib32/lib32-audiofile/PKGBUILD
2013-11-13 23:34:45 +00:00

34 lines
922 B
Bash

# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# contributor (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=audiofile
pkgname=lib32-$_pkgbasename
pkgver=0.3.6
pkgrel=1
pkgdesc="Silicon Graphics Audio File Library (32-bit)"
arch=('x86_64')
url="http://www.68k.org/~michael/audiofile/"
license=('LGPL')
depends=('lib32-glibc' "$_pkgbasename=$pkgver" 'lib32-alsa-lib' 'lib32-flac')
makedepends=(gcc-multilib)
options=('!libtool')
source=("http://audiofile.68k.org/$_pkgbasename-$pkgver.tar.gz")
md5sums=('2731d79bec0acef3d30d2fc86b0b72fd')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_pkgbasename}-${pkgver}"
./configure --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}