mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
main/sdl2: upgrade to 2.0.5 and improve abuild
This commit is contained in:
parent
c943d56247
commit
b4937abc9d
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user