Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
perl: clean up build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MingcongBai committed Dec 20, 2019
1 parent d11e2f8 commit 9ee51b9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 11 additions & 6 deletions core-perl/perl/autobuild/build
@@ -1,5 +1,4 @@
# Nothing special here...

abinfo "Configuring Perl..."
./Configure -des -Dusethreads -Duseshrplib \
-Dprefix=/usr -Dvendorprefix=/usr \
-Dman1dir=/usr/share/man/man1 \
Expand All @@ -20,27 +19,33 @@
-Dldflags="${LDFLAGS}" \
-Doptimize="${CFLAGS}"

abinfo "Building and installing Perl..."
make
make install DESTDIR="$PKGDIR"

abinfo "Installing makepkg templates..."
for template in "$SRCDIR"/*.template; do
install -Dm644 "$template" "$PKGDIR"/usr/share/makepkg-template/"${template##*/}"
install -Dvm644 "$template" \
"$PKGDIR"/usr/share/makepkg-template/"${template##*/}"
done

# From Arch Linux:

### CPAN Settings ###
# Set CPAN default config to use the site directories.
abinfo "Setting default CPAN directories..."
sed -e '/(makepl_arg =>/ s/""/"INSTALLDIRS=site"/' \
-e '/(mbuildpl_arg =>/ s/""/"installdirs=site"/' \
-i "$PKGDIR"/usr/share/perl5/core_perl/CPAN/FirstTime.pm

# Add the dirs so new installs will already have them in PATH once they
# install their first perl programm
install -d -m755 "$PKGDIR"/usr/bin/vendor_perl
install -d -m755 "$PKGDIR"/usr/bin/site_perl
abinfo "Creating directories of vendor and site executables..."
install -dvm755 "$PKGDIR"/usr/bin/{vendor,site}_perl

(cd "$PKGDIR"/usr/bin/core_perl; ln -sf c2ph pstruct;)
abinfo "Creating symlinks for core executables..."
(cd "$PKGDIR"/usr/bin/core_perl; ln -sfv c2ph pstruct;)

abinfo "Purging metadata files..."
find "$PKGDIR" -name perllocal.pod -delete
find "$PKGDIR" -name .packlist -delete
4 changes: 2 additions & 2 deletions core-perl/perl/autobuild/defines
Expand Up @@ -3,10 +3,10 @@ PKGSEC=perl
PKGDEP="gdbm db glibc"
PKGDES="A highly capable and feature rich programming language"

NOPARALLEL=yes
NOPARALLEL=1

PKGEPOCH=4
ABRPMAUTOPROVONLY=yes
ABRPMAUTOPROVONLY=1
RPMEXTRAPROVIDE="perl(abbrev.pl) /sbin/perl /usr/sbin/perl /bin/perl \
perl(assert.pl) perl(bigfloat.pl) perl(bigint.pl) perl(bigrat.pl) perl(bytes_heavy.pl) \
perl(cacheout.pl) perl(complete.pl) perl(ctime.pl) perl(dotsh.pl) perl(dumpvar.pl) \
Expand Down
2 changes: 1 addition & 1 deletion core-perl/perl/spec
@@ -1,4 +1,4 @@
VER=5.28.2
REL=1
REL=2
SRCTBL="http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/perl-$VER.tar.gz"
CHKSUM="sha256::aa95456dddb3eb1cc5475fed4e08f91876bea71fb636fba6399054dfbabed6c7"

0 comments on commit 9ee51b9

Please sign in to comment.