🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
pkgname: perl
pkgver: '5.45.3'
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:
- db
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:
- SKIP
- 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