# Maintainer: PktSurf app=perl version=5.38.0 build=1sml homepage="https://www.perl.org/" download="https://www.cpan.org/src/5.0/perl-$version.tar.xz" desc="High-level, general-purpose, interpreted, dynamic programming language" requires="db" prepbuilddir() { mkandenterbuilddir rm -rf $app-$version tar xf $srcdir/$app-$version.tar.?z* cd $app-$version fixbuilddirpermissions } build() { sed '1i#define PERL_BUILD_DATE "01.01.18 00:00:00"' -i perl.c sed -e 's;myuname=`$u;myuname="linux host" #`$u;' \ -e 's;cf_time=`;cf_time="01.01.18 00:00:00" #`;' \ -e 's;cf_by=`;cf_by=user #`;' \ -e "s;^myhostname='';myhostname=host;" \ -e "s;^phostname='';phostname=host;" \ -i Configure sed -i 's,-fstack-protector,-fnostack-protector,g' ./Configure ./Configure -des \ -Accflags='$CFLAGS' \ -Dprefix=/usr \ -Dvendorprefix=/usr \ -Dsitelib="/usr/lib/perl5/site_perl" \ -Dsitearch="/usr/lib/perl5/site_perl" \ -Darchlib="/usr/lib/perl5/core_perl" \ -Dprivlib="/usr/lib/perl5/core_perl" \ -Dvendorlib="/usr/lib/perl5/vendor_perl" \ -Dvendorarch="/usr/lib/perl5/vendor_perl" \ -Duseshrplib \ -Dusethreads \ -Ubincompat5005 \ -Uversiononly \ -Dcc="$CC" make make install DESTDIR=$pkg find "$pkg" -name "*.0" -exec rm -v {} \; cp Artistic $pkgdocs/LICENSE mkfinalpkg } sha512sums=" 71beff7f6daa22a967972f5805daf2d4ff837a17e5ab808780f815d5914a67acf4f2e92acac0f2d8b24bdde4ceec0c2f7cb3029b5eadeeb30191f757e1bf0f9d perl-5.38.0.tar.xz "