Mail archive
alpine-aports

[alpine-aports] [PATCH 2/4] main/sdl2_image: improve abuild and fix license

From: Daniel Sabogal <dsabogalcc_at_gmail.com>
Date: Tue, 8 Nov 2016 12:54:34 -0500

---
 main/sdl2_image/APKBUILD | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)
diff --git a/main/sdl2_image/APKBUILD b/main/sdl2_image/APKBUILD
index 717887c..713b8dc 100644
--- a/main/sdl2_image/APKBUILD
+++ b/main/sdl2_image/APKBUILD
_at_@ -2,30 +2,21 @@
 # Maintainer: Francesco Colista <fcolista_at_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 \
_at_@ -38,7 +29,7 @@ build() {
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-- 
2.10.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Nov 08 2016 - 12:54:34 GMT