# $Id: PKGBUILD 46679 2009-07-19 15:46:22Z jgc $ # Maintainer: Jan de Groot # Contributor: Sarah Hay pkgname=gtk2-perl _realname=Gtk2 pkgver=1.221 pkgrel=1 pkgdesc="Gtk2-Perl allows Perl developers to write GTK+ 2.x applications." arch=(i686 x86_64) license=('LGPL') url="http://gtk2-perl.sourceforge.net/" makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends') depends=('gtk2>=2.16.5' 'pango-perl>=1.220') options=('!emptydirs') source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/${_realname}-${pkgver}.tar.gz) md5sums=('ba412049d10978ed802b98976f6adaa9') build() { cd "${srcdir}/${_realname}-${pkgver}" # install module in vendor directories. PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 make install DESTDIR="${pkgdir}" || return 1 # remove perllocal.pod and .packlist find "${pkgdir}" -name perllocal.pod -delete find "${pkgdir}" -name .packlist -delete }