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

# source: james
TARBALL=SDL2_mixer-$PKGVER.tar.gz
MD5SUM=a36e8410cac46b00a4d01752b32c3eb1
SRC_URL=https://www.libsdl.org/projects/SDL_mixer/release/$TARBALL
BUNDLE=

SLACKREQ='libSDL2_32 mpg123_32 libopusfile32'
SLACKDESC="libSDL2-mixer32: libSDL2-mixer32 $PKGVER (SDL2 sound mixing library)
libSDL2-mixer32: 
libSDL2-mixer32: SDL_mixer is a sound mixing library that is used with the SDL 
libSDL2-mixer32: library, and almost as portable. It allows a programmer to use 
libSDL2-mixer32: multiple samples along with music without having to code a mixing 
libSDL2-mixer32: algorithm themselves. It also simplyfies the handling of loading and 
libSDL2-mixer32: playing samples and music from all sorts of file formats.
libSDL2-mixer32: 
libSDL2-mixer32: https://www.libsdl.org/projects/SDL_mixer/
libSDL2-mixer32: 
libSDL2-mixer32: This contains 32-bit version of the library
"
SLACKSUG='libpng libtiff libjpeg-turbo'

### default pkg_download

### prepare
pkg_prepare() {
	pkg_prepare_default &&

	# upstream patch
	cd tmp/SDL* &&
	patch -Np3 -i ../pkg/6160668079f91d57a5d7bf0b40ffdd843be70daf.patch && 
	true
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/SDL*
	CONFFLAGS="$CONFFLAGS --disable-static" &&
	pkg_build_autoconf && pkg_build_slackdesc
}


