# Packager: Phill Watkins <ubemail~at~ymail~dot~com>

pkgname=newt
pkgver=0.52.12
pkgrel=1pw
#arch=noarch
source=("http://fedorahosted.org/releases/n/e/newt/newt-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/pwatk/packages/l/$pkgname/$pkgver
docs=("CHANGES" "COPYING")
url=https://fedorahosted.org/newt/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"newt (Semi-graphical interface library)"
"Newt is a programming library for color text mode, widget based user"
"interfaces. Newt can be used to add stacked windows, entry widgets,"
"checkboxes, radio buttons, labels, plain text fields, scrollbars,"
"etc., to text mode user interfaces. Newt is based on the S-Lang"
"library."
)

build() {
	set -e
	
	cd $startdir/src/$pkgname-$pkgver
	./configure \
	  --prefix=/usr \
	  --sysconfdir=/etc \
	  --localstatedir=/var \
	  --libdir=/usr/lib${LIBDIRSUFFIX} \
	  --mandir=/usr/man \
	  --infodir=/usr/info \
	  --docdir=/usr/doc/$pkgname-$pkgver \
	  --build=$arch-slackware-linux
	make LIBTCL="-ltcl8.5"
	make install instroot=$startdir/pkg

    set +e
}