archrelease: copy trunk to extra-x86_64
[arch-packages.git] / sdl2_image / trunk / PKGBUILD
blob1b268db86d28e63ee9ba91ee693ca2597743e794
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=sdl2_image
3 pkgver=2.0.5
4 pkgrel=2
5 pkgdesc="A simple library to load images of various formats as SDL surfaces (Version 2)"
6 arch=('x86_64')
7 url="http://www.libsdl.org/projects/SDL_image"
8 license=('MIT')
9 depends=('sdl2' 'libpng' 'libtiff' 'libjpeg' 'libwebp')
10 makedepends=('cmake')
11 source=("https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz")
12 sha512sums=('77e743d3f32707e015b290c1379ae3c7d7a3fe265995713267f0d0ec6517de4808f0de9890b5ab28445941af5bc9fbff346620629e0d7d7e9f365262cab05ee7')
14 build() {
15   cd "${srcdir}/SDL2_image-${pkgver}/"
16   ./configure --disable-static --prefix=/usr \
17     --disable-jpg-shared \
18     --disable-png-shared \
19     --disable-tif-shared \
20     --disable-webp-shared
21   make
24 package() {
25   cd "${srcdir}/SDL2_image-${pkgver}/"
27   make DESTDIR="${pkgdir}/" install
28   install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"