description="A simple library to load images of various formats as SDL surfaces (Version 2)"
url="http://crawl.develz.org/"

packager="Spiky <spiky@nutyx.org>"
contributors="Remy,Tnut"

makedepends=(sdl libpng libtiff libjpeg-turbo libwebp cmake)

name=sdl-image
version=2.6.2

source=(https://github.com/libsdl-org/SDL_image/releases/download/release-$version/SDL2_image-$version.tar.gz)

build() {

cd SDL2_image-$version

./configure --disable-static --prefix=/usr

make 
make DESTDIR=$PKG install

# Obsolet lib
rm $PKG/usr/lib/libSDL2_image.la
}
