Mail archive
alpine-aports

[alpine-aports] [PATCH 1/4] main/sdl2: upgrade to 2.0.5 and improve abuild

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

---
 main/sdl2/APKBUILD | 28 +++++++++-------------------
 1 file changed, 9 insertions(+), 19 deletions(-)
diff --git a/main/sdl2/APKBUILD b/main/sdl2/APKBUILD
index e76621b..65ed635 100644
--- a/main/sdl2/APKBUILD
+++ b/main/sdl2/APKBUILD
_at_@ -1,7 +1,7 @@
 # Contributor: August Klein <amatcoder_at_gmail.com>
 # Maintainer: August Klein <amatcoder_at_gmail.com>
 pkgname=sdl2
-pkgver=2.0.4
+pkgver=2.0.5
 pkgrel=0
 _pkgname=SDL2
 pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
_at_@ -11,42 +11,32 @@ license="zlib"
 depends=""
 depends_dev="alsa-lib-dev libxcursor-dev libxrandr-dev libxrender-dev mesa-dev"
 makedepends="$depends_dev"
-install=""
 subpackages="$pkgname-dev"
 source="https://www.libsdl.org/release/$_pkgname-$pkgver.tar.gz"
-
-_builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
-	local i
-	cd "$_builddir"
-	for i in $source; do
-		case $i in
-		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
-		esac
-	done
-}
+builddir="$srcdir/$_pkgname-$pkgver"
 
 build() {
-	cd "$_builddir"
+	cd "$builddir"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix=/usr \
 		--enable-alsa \
+		--enable-clock_gettime \
 		--disable-arts \
 		--disable-esd \
 		--disable-nas \
-		--with-x \
 		--disable-rpath \
+		--with-x \
 		|| return 1
 	make || return 1
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-md5sums="44fc4a023349933e7f5d7a582f7b886e  SDL2-2.0.4.tar.gz"
-sha256sums="da55e540bf6331824153805d58b590a29c39d2d506c6d02fa409aedeab21174b  SDL2-2.0.4.tar.gz"
-sha512sums="dd0a95878639856c0f4b8a579ace8071379ab64519fa139b22d3ed857a0f0db87a75bc8480c7207e02fbffd1fdbd448e3c0b882c451675b0e2f1a945af02e1d6  SDL2-2.0.4.tar.gz"
+md5sums="d4055424d556b4a908aa76fad63abd3c  SDL2-2.0.5.tar.gz"
+sha256sums="442038cf55965969f2ff06d976031813de643af9c9edc9e331bd761c242e8785  SDL2-2.0.5.tar.gz"
+sha512sums="6401f5df08c08316c09bc6ac5b28345c5184bb25770baa5c94c0a582ae130ddf73bb736e44bb31f4e427c1ddbbeec4755a6a5f530b6b4c3d0f13ebc78ddc1750  SDL2-2.0.5.tar.gz"
-- 
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:33 GMT