#Packager: Panagiotis Papasotiriou
pkgname=SDL2_image pkgver=2.8.2 pkgrel=1pp source=("https://github.com/libsdl-org/SDL_image/releases/download/release-$pkgver/$pkgname-$pkgver.tar.gz") sourcetemplate=https://people.salixos.org/papasot/salix/$pkgname url="https://github.com/libsdl-org/SDL_image" docs=("README.txt CHANGES.txt") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "SDL2_image (SDL2 image loading library)" "This is a simple library to load images of various formats as SDL" "surfaces. The library supports BMP, GIF, JPEG, LBM, PCX, PNG, PNM" "(PPM/PGM/PBM), QOI, SVG, TGA, XCF, XPM, and XV formats." "" "HomePage: https://github.com/libsdl-org/SDL_image" ) 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 \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs || exit 1 make install DESTDIR=$startdir/pkg cd .. }