mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
39 lines
992 B
Bash
39 lines
992 B
Bash
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=smpeg2
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.0.0
|
|
pkgrel=2
|
|
pkgdesc="SDL2 MPEG Player Library (32-bit)"
|
|
arch=('i686' 'x86_64')
|
|
url="http://icculus.org/smpeg/"
|
|
license=('LGPL')
|
|
depends=('lib32-sdl2' $_pkgbasename=$pkgver)
|
|
makedepends=('lib32-mesa' 'lib32-glu' 'subversion' 'gcc-multilib')
|
|
optdepends=('lib32-glu: to use glmovie')
|
|
options=('!libtool')
|
|
source=("${_pkgbasename}::svn://svn.icculus.org/smpeg/tags/release_${pkgver//./_}")
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_pkgbasename}
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
sed -i s/SDL_CONFIG/SDL2_CONFIG/g smpeg2-config.in
|
|
./autogen.sh
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--disable-static \
|
|
--libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${_pkgbasename}
|
|
make DESTDIR=${pkgdir} install
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
}
|