Skip to content

Instantly share code, notes, and snippets.

@PedroHLC
Last active December 24, 2015 08:49
Show Gist options
  • Save PedroHLC/6772725 to your computer and use it in GitHub Desktop.
Save PedroHLC/6772725 to your computer and use it in GitHub Desktop.
AUR mingw32-smpeg-svn remade
pkgname=mingw32-smpeg-svn
pkgver=412
pkgrel=0
pkgdesc="svn build of SDL2 MPEG Player Library (mingw32)"
arch=('any')
url="http://icculus.org/smpeg/"
license=('LGPL')
depends=('mingw32-sdl-hg' 'mingw32-runtime')
makedepends=('mingw32-gcc' 'svn')
optdepends=('mingw32-gtk: to use gtv ' 'mingw32-glu: to use glmovie')
provides=('mingw32-smpeg2')
conflicts=('mingw32-smpeg2')
options=(!libtool !strip !buildflags)
source=(svn://svn.icculus.org/smpeg/trunk)
md5sums=('SKIP')
prepare() {
cd ${srcdir}/trunk
sed -i s/SDL_CONFIG/SDL2_CONFIG/g smpeg2-config.in
}
build() {
cd ${srcdir}/trunk
./autogen.sh
PKG_CONFIG_PATH=/usr/i486-mingw32/lib/pkgconfig \
./configure --mandir=/usr/i486-mingw32/share/man --disable-static \
--host=i486-mingw32 \
--prefix=/usr/i486-mingw32 \
--enable-static \
--enable-shared
make
}
package() {
cd ${srcdir}/trunk
make DESTDIR=${pkgdir} install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment