diff options
author | dreieck | 2023-05-05 22:56:02 +0200 |
---|---|---|
committer | dreieck | 2023-05-05 22:56:02 +0200 |
commit | 96f9415a726b4a759bdbf85a6caed9f067ab6fc6 (patch) | |
tree | d5a11e76a36e9c02818b04b7e3e7cd538ef6f213 /PKGBUILD | |
parent | 7ba7a4753e41b5af9369864e5648b406208652ee (diff) | |
download | aur-perl-bareword-filehandles-git.tar.gz |
Made the `hook_op_check.h` includ dir fixup patch generated on the fly in order to allow for different perl versions.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -2,8 +2,8 @@ _pkgname=perl-bareword-filehandles pkgname="${_pkgname}-git" -pkgver=0.007.2+r38.20200501.g957063d -pkgrel=3 +pkgver=0.007.4+r40.20220818.g2574acc +pkgrel=2 pkgdesc='disables bareword filehandles.' arch=( 'arm' @@ -37,13 +37,13 @@ options=('!emptydirs') source=( "${_pkgname}::git+https://github.com/ilmari/bareword-filehandles.git" 'Makefile.PL.MakeMaker' - 'Makefile.add-b-hooks-op-check-include.patch' + 'Makefile.add-b-hooks-op-check-include.patch.in' 'LICENSE.PerlArtistic.txt' ) sha256sums=( 'SKIP' 'ff11afc581c683f2d904fa6fd3ab0ed4a22fed7653660b401b8ddf153fb0bd05' - 'fa351fddc0767e003b1b02f35f14dc65480bdf6c6fddd060278c3b68db8cd461' + '76090772a76f11d447523b0fa12eb867fbe4044cf138aa932035d64d251911c7' '916a330e64df209a924120bfddea0373db385eb3854e96d1a3dda6e0ea130c80' ) @@ -52,6 +52,9 @@ prepare() { cp "${srcdir}/Makefile.PL.MakeMaker" . + _perlver="$(perl --version | grep -E 'This is perl [0-9].*\<version[[:space:]]+[0-9]+' | sed -E -e 's|^.*This is perl ([0-9]*).*\<version[[:space:]]+([0-9]+).*$|\1.\2|')" + sed "s|%%PERLVER%%|${_perlver}|g" "${srcdir}/Makefile.add-b-hooks-op-check-include.patch.in" > "${srcdir}/Makefile.add-b-hooks-op-check-include.patch" + perl Makefile.PL # Use this to generate 'ppport.h' mv Makefile Makefile.dzil |