updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / lib32-avifile / PKGBUILD
blobd167ead17f7f68aad48bb73b61c7f05622c75898
1 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: tobias <tobias@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk
4 # Maintainer: JD Steffen <jd@steffennet.org>
6 _pkgbase=avifile
7 pkgname=lib32-$_pkgbase
8 pkgver=0.7.45
9 pkgrel=1
10 pkgdesc="A library that allows you to read and write compressed AVI files (32-bit)"
11 arch=('x86_64')
12 depends=('lib32-sdl' 'lib32-freetype2' 'lib32-libpng' 'lib32-libjpeg' \
13          'lib32-libvorbis' 'lib32-xvidcore' 'lib32-libxxf86dga' 'lib32-libxi' 'lib32-libxv')
14 makedepends=('lame')
15 url="http://avifile.sourceforge.net"
16 license=('GPL')
17 source=("http://downloads.sourceforge.net/sourceforge/avifile/$_pkgbase-0.7-$pkgver.tar.bz2"
18         'gcc.patch')
19 md5sums=('7da94802f120d1b69e04a13170dcd21d'
20          '588c3ce7bdebc1244f46ba56d8ef8a42')
22 build() {
23   cd $_pkgbase-0.7-$pkgver
25   patch -Np1 <../gcc.patch
27   export CC="gcc -m32"
28   export CXX="g++ -m32"
29   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
31  ./configure \
32     --prefix=/usr \
33     --libdir=$pkgdir/usr/lib32 \
34     --without-qt \
35     --host=x86_64-unknown-linux-gnu \
36     --target=i686-unknown-linux-gnu
38   make
41 package() {
42   cd $_pkgbase-0.7-$pkgver
43    
44   make prefix=$pkgdir/usr install
46   rm -rf "${pkgdir}"/usr/{include,share,bin,man}
47   find $pkgdir -name '*.la' -exec rm {} \;