repo/perl/build
2021-07-16 02:05:23 +02:00

22 lines
618 B
Text
Executable file

wget https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
tar -xf perl-5.34.0.tar.gz
cd perl-5.34.0
if [ ! -f $1/etc/hosts ]; then
echo "127.0.0.1 localhost $(hostname)" > $1/etc/hosts
else
#do nothing
fi
export BUILD_ZLIB=False
export BUILD_BZIP2=0
sh Configure -des -Dprefix=/usr \
-Dvendorprefix=/usr \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dpager="/usr/bin/less -isR" \
-Duseshrplib \
-Dusethreads
make
make DESTDIR="$1" install