# Maintainer: Jesus E. pkgname=sdl2_image pkgver=2.6.3 pkgrel=1 pkgdesc="A simple library to load images of various formats as SDL surfaces (Version 2)" arch=('i686' 'x86_64') url='http://www.libsdl.org/projects/SDL_image' license=('zlib') depends=('sdl2' 'libpng' 'libtiff' 'libjpeg') makedepends=('cmake' 'quilt') source=("https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz") sha512sums=('11f1d041a052829708560b6211a2a00b3a1ce26a6f23cb389f57fa5254372027e97d3a6ffe551134a77bc33718c3acea3df21fe8426e93a2b1955176c47c7647') build() { cd "${srcdir}/SDL2_image-${pkgver}/" ./configure --disable-static --prefix=/usr \ --disable-jpg-shared \ --disable-png-shared \ --disable-tif-shared \ --disable-webp-shared make } package() { cd "${srcdir}/SDL2_image-${pkgver}/" make DESTDIR="${pkgdir}/" install install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" }