mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
perl: prepare for auto-create_wrksrc
This commit is contained in:
parent
4a9cf1973c
commit
efad0bb986
1 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,8 @@ distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz
|
|||
checksum="e26085af8ac396f62add8a533c3a0ea8c8497d836f0689347ac5abd7b7a4e00a
|
||||
be9d9f9f7148edff7a2f9695ba3cb7e3975eff6b25a9a81dd311725fd757aa91"
|
||||
|
||||
skip_extraction=perl-cross-${_perl_cross_version}.tar.gz
|
||||
|
||||
# Before updating this package to a new major version, run ${FILESDIR}/provides.pl
|
||||
# against ${wrksrc} to find the list of built in packages.
|
||||
|
||||
|
@ -142,7 +144,9 @@ for f in ${provides}; do
|
|||
done
|
||||
|
||||
post_extract() {
|
||||
cp -a ../perl-cross-${_perl_cross_version}/* .
|
||||
local TAR=$(command -v bsdtar || command -v tar)
|
||||
$TAR --strip-components=1 -xf \
|
||||
${XBPS_SRCDISTDIR}/${pkgname}-${version}/perl-cross-$_perl_cross_version.tar.gz
|
||||
|
||||
[ -n "${SOURCE_DATE_EPOCH}" ] && touch -h -d @$SOURCE_DATE_EPOCH patchlevel.h
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue