#Maintainer: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=SDL2_ttf
pkgver=2.0.13
pkgrel=1dj
source=("http://www.libsdl.org/projects/SDL_ttf/release/$pkgname-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname
#docs=()
url="http://www.libsdl.org/projects/SDL_ttf/"

slackdesc=\
(
 #|-----handy-ruler------------------------------------------------------|
"SDL2_ttf (SDL2 truetype font library)"
"This is a sample library which allows you to use"
"TrueType fonts in your SDL applications."
""
"Homepage: http://www.libsdl.org/projects/SDL_ttf/"
)

build() {
    cd $SRC/$pkgname-$pkgver
	./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --enable-static=no \
  --docdir=/usr/doc/$pkgname-$pkgver \
  --build=$arch-slackware-linux

	make || return 1
	make install DESTDIR=$PKG  || return 1
	rm $PKG/usr/lib${LIBDIRSUFFIX}/libSDL2_ttf.la
}
