aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2016-11-08 12:54:33 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-15 20:08:59 +0000
commitb4937abc9dc1f96970e73dbabed33b7e36bc7e87 (patch)
tree58d570e552f04134dcd97b08cede998ba8b50778 /main/sdl2
parentc943d562474e5d224180414180df4e8a38a45bdb (diff)
downloadaports-b4937abc9dc1f96970e73dbabed33b7e36bc7e87.tar.bz2
aports-b4937abc9dc1f96970e73dbabed33b7e36bc7e87.tar.xz
main/sdl2: upgrade to 2.0.5 and improve abuild
Diffstat (limited to 'main/sdl2')
-rw-r--r--main/sdl2/APKBUILD28
1 files changed, 9 insertions, 19 deletions
diff --git a/main/sdl2/APKBUILD b/main/sdl2/APKBUILD
index e76621bcce..65ed6352e3 100644
--- a/main/sdl2/APKBUILD
+++ b/main/sdl2/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@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"
@@ -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"