aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-crypt-des/APKBUILD
blob: 9d59733673f866eb3c9ef844b97f89daf8c6a23d (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
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=perl-crypt-des
_pkgreal=Crypt-DES
pkgver=2.07
pkgrel=6
pkgdesc="unknown"
url="http://search.cpan.org/dist/Crypt-DES/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/$_pkgreal-$pkgver.tar.gz
	"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="e845d24cf383ca4a30a3380a2735feac  Crypt-DES-2.07.tar.gz"
sha256sums="2db1ebb5837b4cb20051c0ee5b733b4453e3137df0a92306034c867621edd7e7  Crypt-DES-2.07.tar.gz"
sha512sums="95d40280850290fb2f9b2f26be2f47f2241e0aeeb842bd02c56d667062d65b3b65b9a87c045cbee50604f95f8a0d0b033c92334520de19022decaf77f77c7678  Crypt-DES-2.07.tar.gz"