mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
38 lines
850 B
Bash
38 lines
850 B
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=perl-digest-sha1
|
|
_realname=Digest-SHA1
|
|
pkgver=2.13
|
|
pkgrel=2
|
|
pkgdesc="Perl interface to the SHA-1 Algorithm"
|
|
arch=(i686 x86_64)
|
|
license=('PerlArtistic')
|
|
url="http://search.cpan.org/dist/${_realname}/"
|
|
depends=('perl>=5.14.2')
|
|
options=(!emptydirs)
|
|
source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
|
|
replaces=('digest-sha1')
|
|
provides=('digest-sha1')
|
|
md5sums=('bd22388f268434f2b24f64e28bf1aa35')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_realname}-${pkgver}
|
|
|
|
# install module in vendor directories.
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/${_realname}-${pkgver}
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${_realname}-${pkgver}
|
|
make install DESTDIR=${pkgdir}
|
|
}
|