aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-digest-sha1/APKBUILD
blob: b7f1005021f49780db4efb5e86ebfda3dc0fbb97 (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
47
48
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-digest-sha1
_realname=Digest-SHA1
pkgver=2.13
pkgrel=10
pkgdesc="Perl interface to the SHA-1 algorithm"
url="http://search.cpan.org/dist/Digest-SHA1/"
arch="all"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz
	perl-digest-sha1-check-object.patch
	"

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

	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \
		OPTIMIZE="$CFLAGS" || return 1
}

build() {
	cd "$srcdir/$_realname-$pkgver"
	make || return 1
}

package() {
	cd "$srcdir/$_realname-$pkgver"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="bd22388f268434f2b24f64e28bf1aa35  Digest-SHA1-2.13.tar.gz
fac055476741f65e4f6b04c609d72e9b  perl-digest-sha1-check-object.patch"
sha256sums="68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc  Digest-SHA1-2.13.tar.gz
eb40d553901495de6283de0c5bfe20aff9c255db1e88a82615b5e71be689e814  perl-digest-sha1-check-object.patch"
sha512sums="44d0c57ecc7d2126a0387552e76c9204e45fba174af6ff7abc1c9ae00d549eb7370ee20948caf12fafefedec0098b8231249d14b109c53470ee1d5bf3de3305d  Digest-SHA1-2.13.tar.gz
73547d04bbd77cb82f0611132c2105574f528f2a07f4de436c41af606ec505a6a4b634f4397f4cee2d9aa94687957515ac8546b264ca8f71cbd4d4f5fdd5ee74  perl-digest-sha1-check-object.patch"