# $Id: PKGBUILD 21963 2008-12-19 07:30:56Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=slang
pkgver=2.1.4
pkgrel=1
pkgdesc="S-Lang is a powerful interpreted language"
arch=('i686' 'x86_64')
url="http://www.s-lang.org/"
license=('GPL')
depends=('glibc' 'pcre')
backup=('etc/slsh.rc')
options=('!makeflags')
source=(ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz)
md5sums=('3516f593bc04975844f26137c18275d2')
sha1sums=('5c97698f7dcd91834ce64a4dac476a3587851ead')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc || return 1
  make || return 1
  make install-all DESTDIR=${pkgdir} || return 1
}