# $Id: PKGBUILD 2990 2008-06-18 01:46:24Z eric $
# Maintainer: arjan <arjan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
#
pkgname=aalib
pkgver=1.4rc5
pkgrel=5
pkgdesc="AAlib is a portable ASCII art GFX library"
arch=('i686' 'x86_64')
url="http://aa-project.sourceforge.net/aalib/"
license=('LGPL')
depends=('glibc' 'ncurses' 'gpm>=1.20.4' 'libx11')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/aa-project/$pkgname-$pkgver.tar.gz
	aclocal-fixes.patch)
md5sums=('9801095c42bba12edebd1902bcf0a990' '863a96a6689aa7ee073ca448bc2f133d')

build() {
  cd $startdir/src/$pkgname-1.4.0
  patch -Np0 -i ${startdir}/src/aclocal-fixes.patch || return 1
  ./configure --prefix=/usr --mandir=/usr/share/man
  make || return 1
  make DESTDIR=$startdir/pkg install
}