summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23ed691c1d448c753a61deb2ebc0d345a2a55eac (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
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Olivire Mehani <shtrom-arch@ssji.net>
# Generator  : CPANPLUS::Dist::Arch 1.06
pkgname=perl-crypt-x509
pkgver=0.51
pkgrel=1
pkgdesc="Pure Perl X.509 Parser"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl' 'perl-convert-asn1>=0.19')
url='http://search.cpan.org/dist/Crypt-X509'
source=("http://search.cpan.org/CPAN/authors/id/A/AJ/AJUNG/Crypt-X509-$pkgver.tar.gz")

PERL=/usr/bin/perl

prepare() {
	DIST_DIR="${srcdir}/Crypt-X509-$pkgver"
	export PERL_MM_USE_DEFAULT=1 PERL5LIB=""			\
		PERL_AUTOINSTALL=--skipdeps				\
		PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"	\
		PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'"	\
		MODULEBUILDRC=/dev/null
	cd "$DIST_DIR"
	$PERL Makefile.PL
}

build() {
	DIST_DIR="${srcdir}/Crypt-X509-$pkgver"
	cd "$DIST_DIR"
	make
}

test() {
	DIST_DIR="${srcdir}/Crypt-X509-$pkgver"
	cd "$DIST_DIR"
	make test
}

package() {
	DIST_DIR="${srcdir}/Crypt-X509-$pkgver"
	cd "$DIST_DIR"
	make install
	find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

md5sums=('aadab2960d2bd65a212d1bd7f50e282a')