# Lib32 Packages for Chakra, part of chakra-project.org # # maintainer (x86_64): Giuseppe CalĂ  # maintainer (x86_64): Francesco Marinucci _pkgbasename=flac pkgname=lib32-$_pkgbasename pkgver=1.3.0 pkgrel=1 pkgdesc="Free Lossless Audio Codec (32-bit)" arch=('x86_64') url="http://flac.sourceforge.net/" license=('custom:Xiph' 'LGPL' 'GPL' 'FDL') depends=('lib32-libogg' 'lib32-gcc-libs' $_pkgbasename=$pkgver) makedepends=('nasm' gcc-multilib) options=('!libtool' '!makeflags') source=(http://downloads.xiph.org/releases/$_pkgbasename/$_pkgbasename-$pkgver.tar.xz) md5sums=('13b5c214cee8373464d3d65dee362cdd') build() { export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" cd ${srcdir}/${_pkgbasename}-${pkgver} ./configure --prefix=/usr --mandir=/usr/share/man --enable-shared \ --disable-rpath --libdir=/usr/lib32 make } package() { cd ${srcdir}/${_pkgbasename}-${pkgver} make DESTDIR=${pkgdir} install rm -rf "${pkgdir}"/usr/{include,share,bin} mkdir -p "$pkgdir/usr/share/licenses" ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname" }