1 # $Id: PKGBUILD,v 1.7 2007/09/01 17:35:20 jgc Exp $
2 # Maintainer: tobias <tobias@archlinux.org>
3 # Contributor: Tobias Kieslich <tobias@justdreams.de>
8 pkgdesc="An extension for writing GIMP Plug-ins in Perl"
10 license=('GPL' 'PerlArtistic')
11 url="http://www.gimp.org/downloads/"
12 depends=('gtk2-perl' 'gimp>=2.0.0')
13 makedepends=('perl-extutils-depends')
14 source=(ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.0/perl/Gimp-${pkgver}.tar.gz)
15 md5sums=('dcdc7562aae803149f54ebd6d607fc30')
18 cd ${startdir}/src/Gimp-${pkgver}
19 eval `perl -V:archname`
20 eval `perl -V:version`
21 sed -i -e 's:$$dir:$(DESTDIR)$$dir:g' Makefile.PL
22 # Force module installation to "current" perl directories.
24 INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
25 INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
26 INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
27 sed -i -e "s/${version}/current/g" */Makefile Makefile
29 make DESTDIR=${startdir}/pkg install || return 1
30 # remove *.pod, .packlist, and empty dirs:
31 find ${startdir}/pkg -name '.packlist' -exec rm -f '{}' \;
32 find ${startdir}/pkg -name '*.pod' -exec rm -f '{}' \;
33 find ${startdir}/pkg -depth -type d -empty -delete