1 # Contributor: Greg von Nessi <greg.vonnessi@gmail.com>
3 pkgname=perl-gtk2-spell
6 pkgdesc="Perl interface to GtkSpell"
8 url="http://search.cpan.org/~mlehmann/Gtk2-Spell-1.03/"
10 makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends')
12 source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk2-Spell-$pkgver.tar.gz)
13 md5sums=('caf3b6d1e48e4c9096b2ab1ee15cbf4d')
16 cd $startdir/src/Gtk2-Spell-$pkgver
17 eval `perl -V:archname`
18 # Force module installation to "current" perl directories.
19 /usr/bin/perl Makefile.PL \
20 INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
21 INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
22 INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
23 /usr/bin/make || return 1
24 /usr/bin/make DESTDIR=$startdir/pkg install
25 # remove perllocal.pod, .packlist, and empty dirs:
26 /usr/bin/find $startdir/pkg -name '.packlist' -exec rm '{}' \;
27 /usr/bin/find $startdir/pkg -name 'perllocal.pod' -exec rm '{}' \;
28 /usr/bin/find $startdir/pkg -depth -type d -empty -exec rmdir '{}' \;