updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-libtheora / PKGBUILD
blob0949762004c805c030a22841355ed1612c127def
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
6 _pkgname32=libtheora
7 pkgver=1.1.1
8 pkgrel=5
9 pkgdesc="An open video codec developed by the Xiph.org (32bit)"
10 arch=('x86_64')
11 depends=('libtheora' 'lib32-libogg') 
12 makedepends=('gcc-multilib' 'lib32-libvorbis' 'lib32-libpng')
13 url="http://www.xiph.org"
14 groups=lib32
15 license=('BSD' 'custom')
16 options=('!libtool')
17 source=(http://downloads.xiph.org/releases/theora/${_pkgname32}-${pkgver}.tar.bz2)
18 md5sums=('292ab65cedd5021d6b7ddd117e07cd8e')
20 build() {
21   export CC="gcc -m32"
22   export CXX="g++ -m32"
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
29   ./autogen.sh
31   ./configure --prefix=/usr --libdir=/usr/lib32\
32          --enable-shared --disable-static
33   make
36 package() {
37   cd "${srcdir}/${_pkgname32}-${pkgver}"
38   make DESTDIR="${pkgdir}" install
39   rm -rf "${pkgdir}/usr/"{include,share}
41   # link the licence
42   install -dm755 "${pkgdir}/usr/share/licenses/"
43   cd "${pkgdir}/usr/share/licenses/"
44   ln -s "${_pkgname32}" "${pkgname}"