#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=perl-gtk2
pkgver=1.2498
pkgrel=1gv
source=("http://downloads.sourceforge.net/project/gtk2-perl/Gtk2/$pkgver/Gtk2-$pkgver.tar.gz")
docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "copyright.pod")
url=http://gtk2-perl.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"perl-gtk2 (Perl bindings for Gtk+2)"
"perl-gtk2 provides Perl bindings to the 2.x series of the Gtk+"
"graphical user interface library."
)


build() {
	cd $startdir/src/Gtk2-$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
}