blob: 43ae9e50862fec40900ac20b9ba849d8922b0dc7 [file] [log] [blame] [edit]
# Maintainer: @naveen521kk on Github, Naveen M K <naveen@syrusdark.website>
_perlname=Win32API-Registry
_realname="${_perlname,,}"
pkgbase=mingw-w64-perl-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-perl-${_realname}")
pkgver=0.33
pkgrel=3
pkgdesc="Low-level access to Win32 system API calls from WINREG.H (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/C/CH/CHORNY/${_perlname}-${pkgver}.tar.gz"
"patchmakefile.py"
)
sha512sums=('c2e226311b47f7b593fe8ab0e7e9f7f870cbb9260fd520c5717bdb24f2d49d5418c8a8aaf05931a261873157917364d0e45ea2507352e499f9a75e710f891474'
'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
}