#Packager: Panagiotis Papasotiriou
pkgname=SDL2_ttf pkgver=2.20.2 pkgrel=1pp source=("https://github.com/libsdl-org/SDL_ttf/releases/download/release-$pkgver/$pkgname-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/papasot/salix/$pkgname url="https://github.com/libsdl-org/SDL_ttf" docs=("README.txt CHANGES.txt") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "SDL2_ttf (SDL2 TrueType font library)" "This library allows you to use TrueType fonts to render text in SDL2" "applications." "" "HomePage: https://github.com/libsdl-org/SDL_ttf" ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DSDL2TTF_HARFBUZZ=ON \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs || exit 1 make install DESTDIR=$startdir/pkg cd .. }