mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
Test Perl PKGBUILD
This commit is contained in:
parent
1d88306c12
commit
923bc8f8cb
1 changed files with 3 additions and 67 deletions
|
@ -10,13 +10,7 @@ license=('GPL' 'PerlArtistic')
|
|||
url="http://www.perl.org"
|
||||
groups=('base')
|
||||
depends=('gdbm' 'db>=4.7' 'coreutils')
|
||||
# for site_perl this is needed!
|
||||
#test without options=('emptydirs')
|
||||
source=(http://www.perl.com/CPAN/src/$pkgname-$pkgver.tar.gz
|
||||
perlbin.sh
|
||||
perl-5.8.6-picdl.patch0
|
||||
perl-5.10.0-archlinux-inc-order.patch)
|
||||
install=perl.install
|
||||
source=(http://openpogo.com/pkgsrc/core/$pkgname-$pkgver.tar.gz)
|
||||
provides=(
|
||||
# extra
|
||||
perl-archive-tar perl-compress-raw-zlib perl-compress-zlib
|
||||
|
@ -31,66 +25,8 @@ perl-log-message-simple perl-module-corelist perl-module-load
|
|||
perl-module-load-conditional perl-module-loaded perl-module-pluggable
|
||||
perl-object-accessor perl-params-check perl-term-ui perl-time-piece
|
||||
)
|
||||
md5sums=('d2c39b002ebfd2c3c5dba589365c5a71'
|
||||
'aef9f8c6b0434a948ac2e6264b531f3e'
|
||||
'319b56a7ce715fb7a494fe4d5cb9474c'
|
||||
'd19d97ea51dd74d646b7ab774e36c223')
|
||||
md5sums=('4b222da2701d0e49dadaa97ebae53a4c')
|
||||
|
||||
build() {
|
||||
cd ${startdir}/src/${pkgname}-${pkgver}
|
||||
|
||||
# Update some modules provided with perl:
|
||||
# replace the old DB_File with the newest one from CPAN,
|
||||
# since it supports sleepycat's db 4.1.x
|
||||
# cd ext
|
||||
# rm -rf DB_File
|
||||
# mv $startdir/src/DB_File-1.814 ./DB_File
|
||||
|
||||
cd ${startdir}/src/${pkgname}-${pkgver}
|
||||
patch -Np0 -i ../perl-5.10.0-archlinux-inc-order.patch
|
||||
|
||||
arch_opts=""
|
||||
./Configure -des -Dusethreads -Doptimize="${CFLAGS}" -Dprefix=/opt \
|
||||
-Dinstallprefix=${startdir}/pkg/opt -Dvendorprefix=/opt \
|
||||
-Dprivlib=/opt/share/perl5/core_perl \
|
||||
-Darchlib=/opt/lib/perl5/core_perl \
|
||||
-Dsitelib=/opt/share/perl5/site_perl/${pkgver} \
|
||||
-Dsitearch=/opt/lib/perl5/site_perl/${pkgver} \
|
||||
-Dvendorlib=/opt/share/perl5/vendor_perl \
|
||||
-Dvendorarch=/opt/lib/perl5/vendor_perl \
|
||||
-Dotherlibdirs=/opt/lib/perl5/current:/opt/lib/perl5/site_perl/current \
|
||||
-Dscriptdir='/opt/bin/perlbin/core' \
|
||||
-Dsitescript='/opt/bin/perlbin/site' \
|
||||
-Dvendorscript='/opt/bin/perlbin/vendor' \
|
||||
-Dman1ext=1perl -Dman3ext=3perl ${arch_opts}
|
||||
|
||||
make || return 1
|
||||
make install
|
||||
|
||||
### Perl Settings ###
|
||||
# Change man page extensions for site and vendor module builds.
|
||||
sed -e '/^man1ext=/ s/1perl/1p/' -e '/^man3ext=/ s/3perl/3pm/' \
|
||||
-i ${startdir}/pkg/opt/lib/perl5/core_perl/Config_heavy.pl
|
||||
|
||||
### CPAN Settings ###
|
||||
# Set CPAN default config to use the site directories.
|
||||
sed -e '/(makepl_arg =>/ s/""/"INSTALLDIRS=site"/' \
|
||||
-e '/(mbuildpl_arg =>/ s/""/"installdirs=site"/' \
|
||||
-i ${startdir}/pkg/opt/share/perl5/core_perl/CPAN/FirstTime.pm
|
||||
|
||||
### CPANPLUS Settings ###
|
||||
# Set CPANPLUS default config to use the site directories.
|
||||
sed -e "/{'makemakerflags'}/ s/'';/'INSTALLDIRS=site';/" \
|
||||
-e "/{'buildflags'}/ s/'';/'installdirs=site';/" \
|
||||
-i ${startdir}/pkg/opt/share/perl5/core_perl/CPANPLUS/Config.pm
|
||||
|
||||
# Profile script so set paths to perl scripts.
|
||||
install -D -m755 ${startdir}/src/perlbin.sh \
|
||||
${startdir}/pkg/opt/etc/profile.d/perlbin.sh
|
||||
|
||||
(cd ${startdir}/pkg/opt/bin; mv perl${pkgver} perl)
|
||||
(cd ${startdir}/pkg/opt/bin/perlbin/core; \
|
||||
ln -sf c2ph pstruct; ln -sf s2p psed)
|
||||
grep -Rl "${startdir}/pkg" ${startdir}/pkg/opt | \
|
||||
xargs sed -i "s^${startdir}/pkg^^g"
|
||||
cp $srcdir/* $pkgdir/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue