diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-29 16:25:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-31 12:48:15 +0000 |
commit | 57e965a9e88bb2e1b4e7b1d4aa51f10a22a8f59d (patch) | |
tree | e77bdd44d5eac033fdfbee5da6335d90489754f0 /main/sdl2/APKBUILD | |
parent | 5aa2aad2031748484743cddd5d9827718fe42723 (diff) | |
download | aports-57e965a9e88bb2e1b4e7b1d4aa51f10a22a8f59d.tar.bz2 aports-57e965a9e88bb2e1b4e7b1d4aa51f10a22a8f59d.tar.xz |
main/sdl2: move from testing
Diffstat (limited to 'main/sdl2/APKBUILD')
-rw-r--r-- | main/sdl2/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/main/sdl2/APKBUILD b/main/sdl2/APKBUILD new file mode 100644 index 0000000000..edd9fedf11 --- /dev/null +++ b/main/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" |