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

# source: james
TARBALL=SDL2_ttf-$PKGVER.tar.gz
MD5SUM=4815838c87410346226983f4e0a85fd4
#SRC_URL=https://www.libsdl.org/projects/SDL_ttf/release/$TARBALL
SRC_URL=https://github.com/libsdl-org/SDL_ttf/releases/download/release-$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libSDL2_32 freetype2_32'
SLACKDESC="libSDL2-ttf32: libSDL2-ttf32 $PKGVER (TrueType font rendering for SDL)  
libSDL2-ttf32:  
libSDL2-ttf32: This is a sample library which allows you to use TrueType fonts in 
libSDL2-ttf32: your SDL applications. 
libSDL2-ttf32:   
libSDL2-ttf32: https://www.libsdl.org/projects/SDL_ttf/
libSDL2-ttf32: https://github.com/libsdl-org/SDL_ttf
libSDL2-ttf32: 
libSDL2-ttf32: This contains 32-bit version of the library
libSDL2-ttf32: 
libSDL2-ttf32:  
"

### 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
}

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


