# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=sdl2_image pkgver=2.0.1 pkgrel=1 _pkgname=SDL2_image pkgdesc="A simple library to load images of various formats as SDL surfaces" url="http://www.libsdl.org/projects/SDL_image/" arch="all" license="zlib" depends="" makedepends="sdl2-dev libpng-dev libjpeg-turbo-dev libwebp-dev tiff-dev zlib-dev" subpackages="$pkgname-dev" source="http://www.libsdl.org/projects/SDL_image/release/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="d94b94555ba022fa249a53a021dc3606 SDL2_image-2.0.1.tar.gz" sha256sums="3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64 SDL2_image-2.0.1.tar.gz" sha512sums="99ed5f7b69966cea5fcf9173e7270167c24b55ab459774f10dbf90f26dcb9d5f118971ffd4e583a83148976f44ca166474669398a561169d24ffba80f852306f SDL2_image-2.0.1.tar.gz"