summaryrefslogtreecommitdiff
path: root/community/perl-crypt-des/PKGBUILD
blob: 19b7ed1cb73a8e79faca7ff5953625537c200c62 (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 91660 2013-05-26 09:24:51Z bluewind $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
#Contributor: Pete Morris <pete dot morris at gmail dot com>
pkgname=perl-crypt-des
pkgver=2.05
pkgrel=6
pkgdesc="Perl DES encryption module"
arch=('i686' 'x86_64' 'mips64el')
url="http://search.cpan.org/~dparis/Crypt-DES"
license=("GPL" "PerlArtistic")
depends=('glibc')
source=("http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-$pkgver.tar.gz"
	"perl-5.18.patch")
md5sums=('a8a0bea7064e11d2af434f3e468c17bb'
         '836d1a954281257efe00503d98b42dc8')

prepare() {
  cd $srcdir/Crypt-DES-$pkgver
  patch -p1 <$srcdir/perl-5.18.patch
}

build() {
  cd $srcdir/Crypt-DES-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd $srcdir/Crypt-DES-$pkgver
  make pure_install doc_install DESTDIR=${pkgdir}
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}