updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / perl-gtk2-spell / PKGBUILD
blob254f81e77730e56f037cf103f607543ccfe14bff
1 # Contributor: Greg von Nessi <greg.vonnessi@gmail.com>
3 pkgname=perl-gtk2-spell
4 pkgver=1.03
5 pkgrel=1
6 pkgdesc="Perl interface to GtkSpell"
7 arch=('i686' 'x86_64')
8 url="http://search.cpan.org/~mlehmann/Gtk2-Spell-1.03/"
9 depends=('gtk2-perl')
10 makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends')
11 license="GPL"
12 source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk2-Spell-$pkgver.tar.gz) 
13 md5sums=('caf3b6d1e48e4c9096b2ab1ee15cbf4d')
15 build() {
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 '{}' \;