blob: 45d0cf8b1f563afd7350d9fd277bb1714a88c4c6 [file] [log] [blame] [edit]
# Maintainer: @naveen521kk on Github, Naveen M K <naveen@syrusdark.website>
_perlname=Digest-SHA
_realname="${_perlname,,}"
pkgbase=mingw-w64-perl-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-perl-${_realname}")
pkgver=6.02
pkgrel=3
pkgdesc="Perl extension for SHA-1/224/256/384/512 (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
url="https://metacpan.org/release/${_perlname}"
groups=("${MINGW_PACKAGE_PREFIX}-perl-modules")
depends=(
"${MINGW_PACKAGE_PREFIX}-perl"
)
options=('!emptydirs')
makedepends=("${MINGW_PACKAGE_PREFIX}-python")
license=('perl_5')
source=(
"https://cpan.metacpan.org/authors/id/M/MS/MSHELOR/${_perlname}-${pkgver}.tar.gz"
"patchmakefile.py"
)
sha512sums=('405da790a409e22fa266d0915c26223ed64c1bed96ce78d83931bab7b8a1b27deefcb05e366e5088b7aa722530f0d70f03d83a85b98637e477930aad7212a806'
'd7ec5ba4a3d75f674f4028e8a53bc4177ab71a379bc63affebf910e1d5a0e491b6642318218b55ddc4d90e0125d61e4b97626782af57d44522bcb5543fb21cb2')
build() {
cd "$srcdir/${_perlname}-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL
export pkgdir=$pkgdir
python $srcdir/patchmakefile.py
mingw32-make
}
package() {
cd "$srcdir/${_perlname}-${pkgver}"
mingw32-make DESTDIR="${pkgdir}/" install
}