summaryrefslogtreecommitdiff
path: root/extra/perl-libintl-perl/PKGBUILD
blob: e7061cdba06e1174d52c237e3d1daa8f7e47f032 (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
28
29
30
31
32
33
# $Id: PKGBUILD 125264 2011-05-25 19:18:10Z foutrelis $
# Maintainer: kevin <kevin@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=perl-libintl-perl
_realname=libintl-perl
pkgver=1.20
pkgrel=3
pkgdesc="Perl Module: Localization support"
arch=('i686' 'x86_64' 'mips64el')
license=('LGPL')
url="http://search.cpan.org/dist/${_realname}/"
depends=('gettext' 'perl>=5.10.0')
options=(!emptydirs)
source=(http://www.cpan.org/authors/id/G/GU/GUIDO/${_realname}-$pkgver.tar.gz)
md5sums=('cb36f58a7d2e15974f25b35381548b1b')

build() {
  cd ${srcdir}/${_realname}-$pkgver
  # install module in vendor directories.
  perl Makefile.PL INSTALLDIRS=vendor
  make
  make test
}

package() {
  cd ${srcdir}/${_realname}-$pkgver
  make install DESTDIR=${pkgdir}

  # remove perllocal.pod and .packlist
  find ${pkgdir} -name perllocal.pod -delete
  find ${pkgdir} -name .packlist -delete
}