extra/sdl_gfx to 2.0.26-1

This commit is contained in:
Kevin Mihelich 2017-03-31 00:02:05 +00:00
parent 432364016a
commit 7bd25b3be7

View file

@ -1,36 +1,30 @@
# $Id: PKGBUILD 144350 2011-12-04 22:59:47Z heftig $ # $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org # Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk> # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - need --disable-mmx for ARM as well # - need --disable-mmx for ARM as well
pkgname=sdl_gfx pkgname=sdl_gfx
pkgver=2.0.25 pkgver=2.0.26
pkgrel=1 pkgrel=1
pkgdesc="SDL Graphic Primitives" pkgdesc="SDL graphics drawing primitives and other support functions"
arch=('i686' 'x86_64') url="http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"
license=('LGPL') arch=(i686 x86_64)
options=() license=(LGPL)
url="http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx" depends=(sdl)
source=(http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${pkgver}.tar.gz) source=(http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${pkgver}.tar.gz)
depends=('sdl') sha256sums=('7ceb4ffb6fc63ffba5f1290572db43d74386cd0781c123bc912da50d34945446')
md5sums=('ea24ed4b82ff1304809c363494fa8e16')
build() { build() {
cd SDL_gfx-${pkgver} cd SDL_gfx-$pkgver
./configure --prefix=/usr \
if [ "${CARCH}" == "x86_64" -o "${CARCH}" == "arm" -o "${CARCH}" == "armv6h" -o "${CARCH}" == "armv7h" -o "${CARCH}" == "aarch64" ]; then $([[ $CARCH == x86_64 || ${CARCH} == arm || ${CARCH} == armv6h || ${CARCH} == armv7h || ${CARCH} == aarch64 ]] && echo --disable-mmx)
./configure --prefix=/usr --disable-mmx
else
./configure --prefix=/usr
fi
make make
} }
package() { package() {
cd SDL_gfx-${pkgver} cd SDL_gfx-$pkgver
make DESTDIR=${pkgdir} install make DESTDIR="$pkgdir" install
} }