updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / lib32-faad2 / PKGBUILD
bloba93697e5411d83958b010acaccf6021e4d2d1b83
1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
3 _pkgbasename=faad2
4 pkgname=lib32-$_pkgbasename
5 pkgver=2.7
6 pkgrel=4
7 pkgdesc="ISO AAC audio decoder (32 bit, library only)"
8 arch=('x86_64')
9 url="http://www.audiocoding.com/"
10 license=('GPL' 'custom:FAAD2')
11 depends=('lib32-glibc' "$_pkgbasename>=$pkgver")
12 makedepends=('gcc-multilib')
13 options=('!libtool' '!makeflags')
14 source=("http://downloads.sourceforge.net/sourceforge/faac/${_pkgbasename}-${pkgver}.tar.bz2"
15         'LICENSE')
16 md5sums=('4c332fa23febc0e4648064685a3d4332'
17          'ec95f38142e14fb46c849503897a37a0')
18 sha1sums=('b0e80481d27ae9faf9e46c8c8dfb617a0adb91b5'
19           '00edd9b30d8d5098b5e91c03c595d96a3bbe56fd')
21 build() {
22     cd ${srcdir}/${_pkgbasename}-${pkgver}
23     
24     ./configure --prefix=/usr --libdir=/usr/lib32 CC='gcc -m32' CXX='g++ -m32'
25     make CFLAGS="${CFLAGS} -fPIC"
28 package() {
29     cd ${srcdir}/${_pkgbasename}-${pkgver}
30     
31     make DESTDIR=${pkgdir} install
32     rm -rf ${pkgdir}/usr/{bin,include,share}
33     install -Dm644 ${srcdir}/LICENSE \
34                 ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE