# $Id: PKGBUILD 9082 2008-08-17 03:29:36Z allan $
# Maintainer: arjan <arjan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
#
pkgname=aalib
pkgver=1.4rc5
pkgrel=7
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 --infodir=/usr/share/info
  make || return 1
}
package() {
  cd $startdir/src/$pkgname-1.4.0
  make DESTDIR=$startdir/pkg install
  rm ${pkgdir}/usr/share/info/dir
}