# Maintainer: Llewelyn Trahaearn # Contributor: Claudio Kozicky # Contributor: Celti # Contributor: Jan Alexander Steffens (heftig) # Contributor: Eric Belanger # Contributor: Jan de Groot pkgname=lib32-smpeg pkgver=0.4.5 pkgrel=2 pkgdesc="SDL MPEG Player Library (32-bit)" arch=('x86_64') url="http://icculus.org/smpeg/" license=('LGPL') depends=("${pkgname#lib32-}" 'lib32-gcc-libs' 'lib32-sdl') makedepends=('gcc-multilib' 'lib32-glu' 'lib32-mesa' 'subversion') optdepends=('lib32-glu: to use glmovie') source=("${pkgname#lib32-}::svn://svn.icculus.org/smpeg/tags/release_${pkgver//./_}") sha512sums=('SKIP') build() { cd "${srcdir}/${pkgname#lib32-}" # Override the defaults with 32-bit options. export CC='gcc -m32' # GCC 6.1.1 introduced new behaviour that breaks things, using older standard allows successful build. export CXX='g++ -m32 -std=gnu++03' export LDFLAGS='-m32' export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig' export LIBS="-lX11" ./autogen.sh ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static make } package() { cd "${srcdir}/${pkgname#lib32-}" make DESTDIR="${pkgdir}" install rm -r "${pkgdir}/usr/"{bin,include,share} }