Browse Source

[trunk] 'sdl2_image-2.0.5-2' modify

master
Nathan Owens 10 months ago
parent
commit
75dcb4091d
  1. 29
      trunk/PKGBUILD

29
trunk/PKGBUILD

@ -0,0 +1,29 @@
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=sdl2_image
pkgver=2.0.5
pkgrel=2
pkgdesc="A simple library to load images of various formats as SDL surfaces (Version 2)"
arch=('x86_64')
url="http://www.libsdl.org/projects/SDL_image"
license=('MIT')
depends=('sdl2' 'libpng' 'libtiff' 'libjpeg' 'libwebp')
makedepends=('cmake')
source=("https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz")
sha512sums=('77e743d3f32707e015b290c1379ae3c7d7a3fe265995713267f0d0ec6517de4808f0de9890b5ab28445941af5bc9fbff346620629e0d7d7e9f365262cab05ee7')
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 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Loading…
Cancel
Save