common/build-style: revert last fix, instead fix a typo

This commit is contained in:
Enno Boland 2018-02-26 19:52:04 +01:00
parent 2f792446a5
commit 4ae8c6e8e8
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
1 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,7 @@ do_configure() {
local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
mkdir -p $perlprefix
if [ -d "XBPS_CROSS_BASE/usr/lib/perl5/core_perl" ]; then
if [ -d "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl" ]; then
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
else
@ -25,8 +25,6 @@ do_configure() {
fi
export PERL5LIB=$perlprefix
sed -i "s#^ccflags=.*#ccflags='$CFLAGS'#" "$perlprefix/Config"*.p?
if [ -f ${wrksrc}/Makefile.PL ]; then
sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" ${wrksrc}/Makefile.PL
fi