PKGBUILDs/extra/perl-archive-zip/PKGBUILD
2009-10-09 21:23:22 -05:00

28 lines
924 B
Bash

# $Id: PKGBUILD 46376 2009-07-16 20:10:08Z francois $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
pkgname=perl-archive-zip
_realname=Archive-Zip
pkgver=1.30
pkgrel=1
pkgdesc="Provide a perl interface to ZIP archive files"
arch=('i686' 'x86_64')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/${_realname}-${pkgver}.tar.gz)
md5sums=('40153666e7538b410e001aa8a810e702')
build() {
cd ${srcdir}/${_realname}-${pkgver}
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=${pkgdir} || return 1
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}