OCaml 5.0.0 rebuild: Fix Pervasives deprecation
[arch-packages.git] / sdl2_image / repos / extra-x86_64 / PKGBUILD
blob37c9463b60e4850d4b16969ed4901d8d6d83d57e
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 pkgname=sdl2_image
3 pkgver=2.6.3
4 pkgrel=1
5 pkgdesc="A simple library to load images of various formats as SDL surfaces (Version 2)"
6 arch=('x86_64')
7 url="https://github.com/libsdl-org/SDL_image"
8 license=('MIT')
9 depends=('sdl2' 'libpng' 'libtiff' 'libjpeg' 'libwebp' 'libavif' 'libjxl')
10 makedepends=('cmake')
11 source=("https://github.com/libsdl-org/SDL_image/releases/download/release-${pkgver}/SDL2_image-${pkgver}.tar.gz"{,.sig})
12 sha512sums=('11f1d041a052829708560b6211a2a00b3a1ce26a6f23cb389f57fa5254372027e97d3a6ffe551134a77bc33718c3acea3df21fe8426e93a2b1955176c47c7647'
13             'SKIP')
14 validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6')
16 build() {
17   cd "${srcdir}/SDL2_image-${pkgver}/"
18   ./configure --disable-static --prefix=/usr \
19     --disable-jpg-shared \
20     --disable-png-shared \
21     --disable-stb-image \
22     --disable-tif-shared \
23     --disable-jxl-shared \
24     --disable-webp-shared
25   make
28 package() {
29   cd "${srcdir}/SDL2_image-${pkgver}/"
31   make DESTDIR="${pkgdir}/" install
32   install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"