#Packager: Tim Beech <tim~dot~beech~at~gmail~dot~com>

pkgname=perl-curses-ui
pkgver=0.9609
pkgrel=3tjb
#arch=noarch
source=(http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/Curses-UI-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/mimosa/$pkgname/$pkgver/
docs=("credits" "changes""readme" "install" "manifest")
url=http://search.cpan.org/~mdxi/Curses-UI/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"perl-curses-ui (perl Curses-UI module)"
"A curses based OO user interface framework"
)


build() {
	cd $startdir/src/Curses-UI-$pkgver

	perl Makefile.PL || exit 1
	make OPTIMIZE="$CFLAGS" || exit 1
	make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1

	# Remove perllocal.pod and .packlist if present in the package
	( for i in perllocal.pod .packlist; do
	        find $startdir/pkg -name "$i" -exec rm -rf {} \;
		  done
	) || exit 1
}