### this file is sourced not run
PKGVER=2.0.8
PKGBUILD=1
PKGARCH=x86_64

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

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

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	#CONFFLAGS="$CONFFLAGS --disable-static" && # doesn't work for now
	pkg_build_autoconf && 
	pkg_build_slackdesc &&
	
	# multi-lib
	mv -v /usr/bin/sdl2-config{,-64}
	ln -sfv multiarch_wrapper /usr/bin/sdl2-config
}


