mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-27 06:08:57 +00:00
e40b9626df
gpkg/jq gpkg/libaom gpkg/libgnutls gpkg/libsqlite gpkg/libuv gpkg/perl gpkg/python gpkg/binutils-libs gpkg/libdav1d
60 lines
2.2 KiB
Bash
60 lines
2.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.perl.org/
|
|
TERMUX_PKG_DESCRIPTION="Capable, feature-rich programming language"
|
|
TERMUX_PKG_LICENSE="Artistic-License-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux-pacman"
|
|
TERMUX_PKG_VERSION=5.38.2
|
|
_MAJOR_VERSION="${TERMUX_PKG_VERSION%.*}"
|
|
TERMUX_PKG_SRCURL=https://www.cpan.org/src/5.0/perl-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=d91115e90b896520e83d4de6b52f8254ef2b70a8d545ffab33200ea9f1cf29e8
|
|
TERMUX_PKG_DEPENDS="gdbm-glibc, libdb-glibc, glibc, libxcrypt-glibc"
|
|
TERMUX_MAKE_PROCESSES=1
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_RM_AFTER_INSTALL="glibc/bin/perl${TERMUX_PKG_VERSION}"
|
|
|
|
termux_step_configure() {
|
|
./Configure \
|
|
-Dtargetarch=$TERMUX_HOST_PLATFORM \
|
|
-Dcc=$CC -Dcpp=$CXX -Dranlib=$RANLIB \
|
|
-Dld=$CXX -Dar=$AR -Dnm=$NM \
|
|
-Dlocincpth=$TERMUX_PREFIX/include \
|
|
-Dloclibpth=$TERMUX_PREFIX/lib \
|
|
-Dglibpth=$TERMUX_PREFIX/lib \
|
|
-Dxlibpth=$TERMUX_PREFIX/lib \
|
|
-Dplibpth=$TERMUX_PREFIX/lib \
|
|
-Dlibpth=$TERMUX_PREFIX/lib \
|
|
-Dsh=$TERMUX_PREFIX/bin/sh \
|
|
-des -Duseshrplib -Dusethreads -Doptimize="${CFLAGS}" \
|
|
-Dprefix=$TERMUX_PREFIX -Dvendorprefix=$TERMUX_PREFIX \
|
|
-Dprivlib=$TERMUX_PREFIX/share/perl5 \
|
|
-Darchlib=$TERMUX_PREFIX/lib/perl5/$_MAJOR_VERSION \
|
|
-Dsitelib=$TERMUX_PREFIX/share/perl5 \
|
|
-Dsitearch=$TERMUX_PREFIX/lib/perl5/$_MAJOR_VERSION \
|
|
-Dvendorlib=$TERMUX_PREFIX/share/perl5 \
|
|
-Dvendorarch=$TERMUX_PREFIX/lib/perl5/$_MAJOR_VERSION \
|
|
-Dscriptdir=$TERMUX_PREFIX/bin \
|
|
-Dsitescript=$TERMUX_PREFIX/bin \
|
|
-Dvendorscript=$TERMUX_PREFIX/bin \
|
|
-Dinc_version_list=none \
|
|
-Dman1ext=1perl -Dman3ext=3perl \
|
|
-Dosname=linux -Dmyuname="termux" -Dmyhostname="termux" \
|
|
-Dlddlflags="-shared ${LDFLAGS}" -Dldflags="${LDFLAGS}" \
|
|
-Dcf_time="`date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}"`"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
(
|
|
cd $TERMUX_PREFIX/share/man/man1
|
|
rm perlbug.1perl
|
|
ln -s perlthanks.1perl perlbug.1perl
|
|
)
|
|
|
|
sed -e '/^man1ext=/ s/1perl/1p/' -e '/^man3ext=/ s/3perl/3pm/' \
|
|
-e "/^cf_email=/ s/'.*'/''/" \
|
|
-e "/^perladmin=/ s/'.*'/''/" \
|
|
-i "${TERMUX_PREFIX}/lib/perl5/$_MAJOR_VERSION/Config_heavy.pl"
|
|
|
|
sed -e '/(makepl_arg =>/ s/""/"INSTALLDIRS=site"/' \
|
|
-e '/(mbuildpl_arg =>/ s/""/"installdirs=site"/' \
|
|
-i "${TERMUX_PREFIX}/share/perl5/CPAN/FirstTime.pm"
|
|
}
|