core/perl-digest-hmac/PKGBUILD

34 lines
828 B
Bash
Raw Normal View History

2011-03-26 19:26:26 +08:00
# Platform Packages for Chakra, part of chakra-project.org
2010-03-14 23:48:48 +08:00
pkgname=perl-digest-hmac
_realname=Digest-HMAC
2012-05-10 06:20:03 +08:00
pkgver=1.03
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="Perl Module: Keyed-Hashing for Message Authentication."
2012-05-10 06:20:03 +08:00
arch=('any')
2010-03-14 23:48:48 +08:00
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-digest-sha1' 'perl>=5.10.0')
options=(!emptydirs)
replaces=('digest-hmac')
provides=('digest-hmac')
source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
2012-05-10 06:20:03 +08:00
md5sums=('e6a5d6f552da16eacb5157ea4369ff9d')
2010-03-14 23:48:48 +08:00
build() {
2011-03-26 19:26:26 +08:00
cd ${srcdir}/${_realname}-${pkgver}
2010-03-14 23:48:48 +08:00
# install module in vendor directories.
2011-03-26 19:26:26 +08:00
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
2012-05-10 06:20:03 +08:00
}
check() {
cd ${srcdir}/${_realname}-${pkgver}
2011-03-26 19:26:26 +08:00
make test
}
package() {
cd ${srcdir}/${_realname}-${pkgver}
make install DESTDIR=${pkgdir}
2012-05-10 06:20:03 +08:00
}