diff options
author | AmatCoder <amatcoder@gmail.com> | 2015-06-12 08:27:00 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-06-12 13:05:45 +0000 |
commit | b08aa1eac064fc3b990075c1c0f6ee4ab1ee6fe1 (patch) | |
tree | 6fa380628a74cf85c66ebd9a9e9b10f71f63bfab /testing/sdl2/APKBUILD | |
parent | 66cd3f61d80f81adaee37d0fb22b458f34d2e079 (diff) | |
download | aports-b08aa1eac064fc3b990075c1c0f6ee4ab1ee6fe1.tar.bz2 aports-b08aa1eac064fc3b990075c1c0f6ee4ab1ee6fe1.tar.xz |
testing/sdl2: new aport
Diffstat (limited to 'testing/sdl2/APKBUILD')
-rw-r--r-- | testing/sdl2/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/sdl2/APKBUILD b/testing/sdl2/APKBUILD new file mode 100644 index 0000000000..edd9fedf11 --- /dev/null +++ b/testing/sdl2/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: August Klein <amatcoder@gmail.com> +# Maintainer: August Klein <amatcoder@gmail.com> +pkgname=sdl2 +pkgver=2.0.3 +pkgrel=0 +_pkgname=SDL2 +pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics" +url="http://www.libsdl.org" +arch="all" +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 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-alsa \ + --disable-arts \ + --disable-esd \ + --disable-nas \ + --with-x \ + --disable-rpath \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="fe6c61d2e9df9ef570e7e80c6e822537 SDL2-2.0.3.tar.gz" +sha256sums="a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c SDL2-2.0.3.tar.gz" +sha512sums="b6d2485154fbc07ab86a4305485e116d35fac25a97033b9e1c65ee0eb8251a18209cb1de3a914d9c0ddc53aa1ffac66c865b111d218e79eb5a10ed00dfec7540 SDL2-2.0.3.tar.gz" |