summaryrefslogtreecommitdiffstats
path: root/perl-compress-zlib/PKGBUILD
blob: ed9d4276da0d578b59783ddbab1ff17fc0149e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pkgname=perl-compress-zlib
_realname=Compress-Zlib
pkgver=2.015
pkgrel=1
pkgdesc="Perl interface to zlib compression library"
arch=(i686 x86_64)
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
options=(!emptydirs)
#http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Zlib-2.015.tar.gz
source=(http://www.cpan.org/authors/id/P/PM/PMQS/${_realname}-${pkgver}.tar.gz)
replaces=('compress-zlib')
provides=('compress-zlib')
md5sums=('689ba2cc399b019d0bf76a0575c32947')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  # install module in vendor directories.
  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
}