diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-12 17:10:40 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-19 09:26:35 +0000 |
commit | 3f72c4daed6bf8b1ebaeed8b77cb043a1d8dafd6 (patch) | |
tree | 1907272d2208d2b13a600efeff42dfd304219500 /main/sdl | |
parent | 68058cbcceaea129b6a442de851bdb6df1999b69 (diff) | |
download | aports-3f72c4daed6bf8b1ebaeed8b77cb043a1d8dafd6.tar.bz2 aports-3f72c4daed6bf8b1ebaeed8b77cb043a1d8dafd6.tar.xz |
main/sdl: modernise, fix license, mark no tests
Diffstat (limited to 'main/sdl')
-rw-r--r-- | main/sdl/APKBUILD | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/main/sdl/APKBUILD b/main/sdl/APKBUILD index 69d81747b4..b8a0e4e12e 100644 --- a/main/sdl/APKBUILD +++ b/main/sdl/APKBUILD @@ -1,11 +1,12 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=sdl pkgver=1.2.15 -pkgrel=7 +pkgrel=8 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard" url="http://www.libsdl.org" arch="all" -license="LGPL" +options="!check" # Tests are all interactive. +license="LGPL-2.1+" subpackages="$pkgname-dev $pkgname-doc" depends= depends_dev="libx11-dev" @@ -15,20 +16,16 @@ source="http://www.libsdl.org/release/SDL-$pkgver.tar.gz SDL-1.2.10-GrabNotViewable.patch SDL-1.2.15-const_XData32.patch " -_builddir="$srcdir"/SDL-$pkgver +builddir="$srcdir"/SDL-$pkgver prepare() { - cd "$_builddir" - update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + update_config_sub + default_prepare } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -40,23 +37,15 @@ build() { --disable-video-aalib \ --enable-alsa \ --with-x \ - --disable-rpath \ - --disable-nls \ - || return 1 + --disable-rpath make } package() { - cd "$srcdir"/SDL-$pkgver + cd "$builddir" make DESTDIR="$pkgdir" install } -md5sums="9d96df8417572a2afb781a7c4c811a85 SDL-1.2.15.tar.gz -37ad001a4d2ff924a5fab356b49f8a78 SDL-1.2.10-GrabNotViewable.patch -d9ad0c726f7d3f3e3c8bbf83368cd38d SDL-1.2.15-const_XData32.patch" -sha256sums="d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00 SDL-1.2.15.tar.gz -ea2042b8a45a083b1447d5c56e52b23b79f2ddb0d717ec7b287b34ef71bd2d1a SDL-1.2.10-GrabNotViewable.patch -465c611d4a9db44a6d7f0a8f6ef9583ec4b85383b17a2b706b3a811294220173 SDL-1.2.15-const_XData32.patch" sha512sums="ac392d916e6953b0925a7cbb0f232affea33339ef69b47a0a7898492afb9784b93138986df53d6da6d3e2ad79af1e9482df565ecca30f89428be0ae6851b1adc SDL-1.2.15.tar.gz 20049408d4c00d895c39a7901d889d1874ebcd382e93b2e8df38bd3726e2236f4e9a980720724cf176a35d05fb0db5dbcabd42089423adeb404f2dba16d52b7b SDL-1.2.10-GrabNotViewable.patch ae7cdb61930199a7989e1690be37133eddeb8d446fef3fb5bbe0008d5e3b30abb28f4cc8ffea5d7a186ec242f158ed06dbd2b9ea98ca3e3caeed5ab12bac6875 SDL-1.2.15-const_XData32.patch" |