updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / lib32-xvidcore / PKGBUILD
blob95706d71400668fca4c55a2de89b793813a774d1
1 # Contributor: tobias <tobias@archlinux.org>
2 # Contributor: Sarah Hay <sarah@archlinux.org>
3 # Maintainer: JD Steffen <jd@steffennet.org>
5 _pkgbase=xvidcore
6 pkgname=lib32-$_pkgbase
7 pkgver=1.2.2
8 pkgrel=1
9 pkgdesc="XviD is an open source MPEG-4 video codec (32-bit)"
10 arch=('x86_64')
11 license=('GPL')
12 url="http://www.xvid.org/"
13 depends=('lib32-glibc')
14 makedepends=('nasm')
15 source=(http://downloads.xvid.org/downloads/${_pkgbase}-${pkgver}.tar.bz2)
16 md5sums=('6a3473a12c8a1fa7bdc2b5cb829fab58')
18 build() {
20   export CC="gcc -m32"
21   export CXX="g++ -m32"
22   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
23   
24   cd ${srcdir}/${_pkgbase}/build/generic
25   ./configure --prefix=/usr \
26               --libdir=/usr/lib32 \
27               --host=x86_64-unknown-linux-gnu \
28               --target=i686-unknown-linux-gnu
29   make || return 1
30   make DESTDIR=${pkgdir} install || return 1
32   rm -rf "${pkgdir}"/usr/{include,share,bin}
34   #Fix dynamic libraries
35   cd ${pkgdir}/usr/lib32
36   mylib=$(basename libxvidcore.so.*)
37   ln -sf ${mylib} libxvidcore.so.4
38   ln -sf ${mylib} libxvidcore.so