updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / gimp-perl / PKGBUILD
blob717b5468633b0c9bbe33e0bccfd63afb9e2b4d94
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>
5 pkgname=gimp-perl
6 pkgver=2.0
7 pkgrel=3
8 pkgdesc="An extension for writing GIMP Plug-ins in Perl"
9 arch=(i686 x86_64)
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')
17 build() {
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.
23   perl Makefile.PL \
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
28   make || return 1
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