# Maintainer: Jose Riha pkgname=perl-gtk2-sourceview2 _cpanname=Gtk2-SourceView2 pkgver=0.12 pkgrel=1 pkgdesc="Perl interface to the GtkSourceView library" arch=('any') url="https://metacpan.org/pod/Gtk2::SourceView2" license=('GPL') depends=('gtksourceview2' 'pango-perl' 'gtk2-perl' 'perl-extutils-depends' 'perl-extutils-pkgconfig') options=('!emptydirs') source=(http://cpan.metacpan.org/authors/id/X/XA/XAOC/${_cpanname}-${pkgver}.tar.gz) md5sums=('7a3c49414ace5463978f6f458a241808') build() { cd $srcdir/${_cpanname}-${pkgver} sed -i '/^auto_install/d' Makefile.PL PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } package() { cd $srcdir/${_cpanname}-${pkgver} make install DESTDIR=$pkgdir find $pkgdir -name '.packlist' -delete find $pkgdir -name '*.pod' -delete }