pkgname: perl pkgver: '5.44.0' pkgrel: '1' pkgdesc: 'The Perl package contains the Practical Extraction and Report Language.' url: 'https://www.perl.org/' arch: x86_64 license: - GPL - PerlArtistic depends: [] makedepends: - gzip - bzip2 - less source: - 'https://www.cpan.org/src/5.0/${pkgname}-${pkgver}.tar.xz' - 'perl-5.40.0-fix-compilation-in-eprefix-bug-939014.patch' sha256sums: - 505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91 - fec7fe3bafbcafe01d561d515c163a41c7532f27e8040ac180e3dc460cdff876 build: | cd ${pkgname}-${pkgver} echo "127.0.0.1 localhost $(hostname)" > /etc/hosts export BUILD_ZLIB=False export BUILD_BZIP2=1 sh Configure -des \ -Dprefix=/usr \ -Duseshrplib \ -Dvendorprefix=/usr \ -Darchlib=/usr/lib/perl5/5.42/core_perl \ -Dprivlib=/usr/lib/perl5/5.42/core_perl \ -Dvendorlib=/usr/lib/perl5/5.42/vendor_perl \ -Dvendorarch=/usr/lib/perl5/5.42/vendor_perl \ -Dsitelib=/usr/lib/perl5/5.42/site_perl \ -Dsitearch=/usr/lib/perl5/5.42/site_perl \ -Dman1dir=/usr/share/man/man1 \ -Dman3dir=/usr/share/man/man3 \ -Dpager="/usr/bin/less isR" \ -Dcccdlflags='-fPIC' \ -Dccflags='-fPIC' \ -Dusethreads make # Only when we are building a new base if [ -L /tools ]; then make -k test || true fi make DESTDIR=${PKGDIR} install find ${PKGDIR} -iname 'TODO*' -or \ -iname 'Change*' -or \ -iname 'README*' -or \ -name '*.bs' -or \ -name .packlist -or \ -name perllocal.pod -or \ -empty -delete chmod -R +w ${PKGDIR} unset BUILD_ZLIB BUILD_BZIP2 install -Dm644 Copying ${PKGDIR}/usr/share/licenses/${pkgname}/Copying package: | true