# $Id: PKGBUILD 144350 2011-12-04 22:59:47Z heftig $ # Maintainer: Jan Alexander Steffens (heftig) # Contributor: Allan McRae # ALARM: Kevin Mihelich # - need --disable-mmx for ARM as well pkgname=sdl_gfx pkgver=2.0.24 pkgrel=2 pkgdesc="SDL Graphic Primitives" arch=('i686' 'x86_64') license=('LGPL') options=(!libtool) url="http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx" source=(http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${pkgver}.tar.gz) depends=('sdl') md5sums=('838514185ff9a3b6377760aaa52fef8a') build() { cd SDL_gfx-${pkgver} if [ "${CARCH}" == "x86_64" -o "${CARCH}" == "arm" -o "${CARCH}" == "armv6h" -o "${CARCH}" == "armv7h" ]; then ./configure --prefix=/usr --disable-mmx else ./configure --prefix=/usr fi make } package() { cd SDL_gfx-${pkgver} make DESTDIR=${pkgdir} install }