1 # Contributor: tobias <tobias@archlinux.org>
2 # Contributor: Sarah Hay <sarah@archlinux.org>
3 # Maintainer: JD Steffen <jd@steffennet.org>
6 pkgname=lib32-$_pkgbase
9 pkgdesc="XviD is an open source MPEG-4 video codec (32-bit)"
12 url="http://www.xvid.org/"
13 depends=('lib32-glibc')
15 source=(http://downloads.xvid.org/downloads/${_pkgbase}-${pkgver}.tar.bz2)
16 md5sums=('6a3473a12c8a1fa7bdc2b5cb829fab58')
22 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
24 cd ${srcdir}/${_pkgbase}/build/generic
25 ./configure --prefix=/usr \
27 --host=x86_64-unknown-linux-gnu \
28 --target=i686-unknown-linux-gnu
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