From e920ee8c670315b1adf783ee811232c2e511cf78 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 11 Apr 2020 20:34:06 +0300 Subject: perl: move to extra --- extra/perl/build | 43 +++++++++++++++++++++++++++++++++++++++++++ extra/perl/checksums | 1 + extra/perl/depends | 2 ++ extra/perl/sources | 1 + extra/perl/version | 1 + 5 files changed, 48 insertions(+) create mode 100755 extra/perl/build create mode 100644 extra/perl/checksums create mode 100644 extra/perl/depends create mode 100644 extra/perl/sources create mode 100644 extra/perl/version (limited to 'extra/perl') diff --git a/extra/perl/build b/extra/perl/build new file mode 100755 index 00000000..a81dc976 --- /dev/null +++ b/extra/perl/build @@ -0,0 +1,43 @@ +#!/bin/sh -e + +export BUILD_ZLIB=0 +export BUILD_BZIP2=0 +export LDFLAGS="$LDFLAGS -pthread" +export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE" + +./Configure \ + -des \ + -Dprefix=/usr \ + -Dvendorprefix=/usr \ + -Dusevendorprefix \ + -Duseshrplib \ + -Dusesoname \ + -Dusethreads \ + -Dinc_version_list=none \ + -Dd_sockaddr_in6=define \ + -Dcccdlflags=-fPIC \ + -Dccflags="$CFLAGS" \ + -Dlddlflags="-shared $LDFLAGS" \ + -Dldflags="$LDFLAGS" \ + -Doptimize="-Wall $CFLAGS" \ + -Dcc="${CC:-gcc}" \ + -Dar="${AR:-ar}" \ + -Dnm="${NM:-nm}" \ + -Dranlib="${RANLIB:-ranlib}" \ + -Dperl_static_inline="static __inline__" \ + -Dd_static_inline + +make +make DESTDIR="$1" install + +# Remove all unneeded files. +find "$1" -name \*.pod -delete +find "$1" -name .packlist -delete +find "$1" -name README\* -delete +find "$1" -name TODO\* -delete +find "$1" -name Change\* -delete +find "$1" -name \*.bs -delete +find "$1" -name \*.0 -type f -delete + +# Fix permissions. +find "$1/usr/lib" -type f -exec chmod 644 {} \; diff --git a/extra/perl/checksums b/extra/perl/checksums new file mode 100644 index 00000000..14b211bb --- /dev/null +++ b/extra/perl/checksums @@ -0,0 +1 @@ +bdecb9dc345577ee5291a051f458d4586c95a833797d2efefb8d532dbdad716c v5.30.2.tar.gz diff --git a/extra/perl/depends b/extra/perl/depends new file mode 100644 index 00000000..4565337a --- /dev/null +++ b/extra/perl/depends @@ -0,0 +1,2 @@ +bzip2 +zlib diff --git a/extra/perl/sources b/extra/perl/sources new file mode 100644 index 00000000..a7c77753 --- /dev/null +++ b/extra/perl/sources @@ -0,0 +1 @@ +https://github.com/Perl/perl5/archive/v5.30.2.tar.gz diff --git a/extra/perl/version b/extra/perl/version new file mode 100644 index 00000000..d48f4f22 --- /dev/null +++ b/extra/perl/version @@ -0,0 +1 @@ +5.30.2 1 -- cgit v1.2.3