#Packager: Frédéric Galusik pkgname=perl-ui-dialog pkgver=1.08 pkgrel=1fg #arch=noarch source=(http://search.cpan.org/CPAN/authors/id/K/KC/KCK/UI-Dialog-$pkgver.tar.gz) sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver/ docs=("changes" "manifest" "readme") url=http://search.cpan.org/~kck/UI-Dialog/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-ui-dialog (UI-Dialog Perl Module)" "UI::Dialog is a OOPerl wrapper for the various dialog applications." "These dialog backends are currently supported: Zenity, XDialog," "GDialog, KDialog, CDialog, and Whiptail." "There is also an ASCII backend provided as a last resort interface" "for the console based dialog variants." "UI::Dialog is a class that provides a strict interface to these" " various backend modules." ) build() { cd $startdir/src/UI-Dialog-$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 }