aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/perl.sh
blob: 5097e8a8d97b2e827dbde580cfd76c0f97ecee72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e

MAJMIN="$(cut -d\. -f1,2 <<< "${VERSION}")"

export BUILD_ZLIB=False
export BUILD_BZIP2=0

sh Configure -des \
             -Dprefix=/usr \
             -Dvendorprefix=/usr \
             -Dprivlib=/usr/lib/perl5/"${MAJMIN}"/core_perl \
             -Darchlib=/usr/lib/perl5/"${MAJMIN}"/core_perl \
             -Dsitelib=/usr/lib/perl5/"${MAJMIN}"/site_perl \
             -Dsitearch=/usr/lib/perl5/"${MAJMIN}"/site_perl \
             -Dvendorlib=/usr/lib/perl5/"${MAJMIN}"/vendor_perl \
             -Dvendorarch=/usr/lib/perl5/"${MAJMIN}"/vendor_perl \
             -Dman1dir=/usr/share/man/man1 \
             -Dman3dir=/usr/share/man/man3 \
             -Dpager="/usr/bin/less -isR" \
             -Duseshrplib \
             -Dusethreads &&

make &&

make -j1 install &&
unset BUILD_ZLIB BUILD_BZIP2