1 # Maintainer: Nicky726 (nicky726 <at> gmail <dot> com)
2 # Contributor: Tom Killian (tom <at> archlinux <dot> org)
3 # Contributor: Rémy Oudompheng (remyoudompheng <at> gmail <dot> com)
5 pkgname=lib32-libtheora
9 pkgdesc="An open video codec developed by the Xiph.org (32bit)"
11 depends=('libtheora' 'lib32-libogg')
12 makedepends=('gcc-multilib' 'lib32-libvorbis' 'lib32-libpng')
13 url="http://www.xiph.org"
15 license=('BSD' 'custom')
17 source=(http://downloads.xiph.org/releases/theora/${_pkgname32}-${pkgver}.tar.bz2)
18 md5sums=('292ab65cedd5021d6b7ddd117e07cd8e')
23 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
25 cd "${srcdir}/${_pkgname32}-${pkgver}"
27 # Hack preventing to use 64bit asembler optimisations, thanx to Rémy
28 sed -i -e "s/AC_DEFINE(\[OC_X86_64_ASM\]/#AC_DEFINE(\[OC_X86_64_ASM\]/" configure.ac
31 ./configure --prefix=/usr --libdir=/usr/lib32\
32 --enable-shared --disable-static
37 cd "${srcdir}/${_pkgname32}-${pkgver}"
38 make DESTDIR="${pkgdir}" install
39 rm -rf "${pkgdir}/usr/"{include,share}
42 install -dm755 "${pkgdir}/usr/share/licenses/"
43 cd "${pkgdir}/usr/share/licenses/"
44 ln -s "${_pkgname32}" "${pkgname}"