### this file is sourced not run
PKGVER=2.0.12
PKGBUILD=1
PKGARCH=i686

# source: james
TARBALL=SDL2-$PKGVER.tar.gz
MD5SUM=783b6f2df8ff02b19bb5ce492b99c8ff
SRC_URL=http://www.libsdl.org/release/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib32 libX11_32' # and a few others, dynamically loaded
SLACKDESC="libSDL2_32: libSDL2_32 $PKGVER (Simple DirectMedia Layer)  
libSDL2_32:  
libSDL2_32: Simple DirectMedia Layer is a cross-platform development library 
libSDL2_32: designed to provide low level access to audio, keyboard, mouse, 
libSDL2_32: joystick, and graphics hardware via OpenGL and Direct3D. It is used 
libSDL2_32: by video playback software, emulators, and popular games. 
libSDL2_32: 
libSDL2_32: This is version 2 of SDL. It can be installed side-by-side with
libSDL2_32: version 1. Newer applications depends on this library.
libSDL2_32: 
libSDL2_32: This contains 32-bit libraries only
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share &&
	mkdir -p usr/bin &&
	mv tmp/*-32 usr/bin
}

### build
pkg_build() {
	#CONFFLAGS="$CONFFLAGS --disable-static" && # doesn't work for now
	pkg_build_autoconf && 
	pkg_build_slackdesc &&

	# multilib
	mv /usr/bin/sdl2-config /tmp/sdl2-config-32
}


