1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
4 pkgname=lib32-$_pkgbasename
7 pkgdesc="FAAC is an AAC audio encoder (32 bit)"
9 url="http://www.audiocoding.com/"
10 license=('GPL' 'custom:FAAC')
11 depends=('lib32-libmp4v2' 'lib32-glibc' "$_pkgbasename>=$pkgver")
12 makedepends=('gcc-multilib' 'lib32-libtool')
14 source=("http://downloads.sourceforge.net/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz"
16 md5sums=('80763728d392c7d789cde25614c878f6'
17 '9d52a17e68fa15ca94e88e1457b94b74')
20 cd ${srcdir}/${_pkgbasename}-${pkgver}
22 patch -Np1 -i ${srcdir}/mp4v2-1.9.patch
23 find . -type f -print0 | xargs -0 sed -i 's/\r//g'
25 ./configure --prefix=/usr --with-mp4v2 --libdir=/usr/lib32 \
26 --libexecdir=/usr/lib32/${_pkgbasename} CC='gcc -m32' CXX='g++ -m32'
31 cd ${srcdir}/${_pkgbasename}-${pkgver}
33 make DESTDIR=${pkgdir} install
34 rm -rf ${pkgdir}/usr/{bin,include,share}
35 install -Dm644 "${srcdir}/${_pkgbasename}-${pkgver}/libfaac/kiss_fft/COPYING" \
36 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"