diff options
author | Daniel Sabogal <dsabogalcc@gmail.com> | 2016-11-08 12:54:34 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-15 20:09:28 +0000 |
commit | 0b71c8fe8ead361850c95a407a7dcae09de299a6 (patch) | |
tree | 9fe9f402690699a2f2299c9a229f8389656a53d8 /main/sdl2_image | |
parent | b4937abc9dc1f96970e73dbabed33b7e36bc7e87 (diff) | |
download | aports-0b71c8fe8ead361850c95a407a7dcae09de299a6.tar.bz2 aports-0b71c8fe8ead361850c95a407a7dcae09de299a6.tar.xz |
main/sdl2_image: improve abuild and fix license
Diffstat (limited to 'main/sdl2_image')
-rw-r--r-- | main/sdl2_image/APKBUILD | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/main/sdl2_image/APKBUILD b/main/sdl2_image/APKBUILD index 717887c883..713b8dcba7 100644 --- a/main/sdl2_image/APKBUILD +++ b/main/sdl2_image/APKBUILD @@ -2,30 +2,21 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=sdl2_image pkgver=2.0.1 -pkgrel=0 +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="LGPL2+" +license="zlib" depends="" makedepends="sdl2-dev libpng-dev libjpeg-turbo-dev - libwebp-dev tiff-dev zlib-dev" + libwebp-dev tiff-dev zlib-dev" subpackages="$pkgname-dev" -source="http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz" - -_builddir="$srcdir"/SDL2_image-$pkgver -prepare() { - cd "$_builddir" - update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +source="http://www.libsdl.org/projects/SDL_image/release/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -38,7 +29,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } |