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