2006-02-23 15:26:10 +00:00
|
|
|
# Description: Perl programming language
|
|
|
|
# URL: http://www.perl.org/
|
2007-01-23 17:25:18 +00:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2008-09-18 10:27:13 +02:00
|
|
|
# Depends on: db gdbm
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=perl
|
2020-06-04 16:34:25 +02:00
|
|
|
version=5.28.3
|
2018-12-06 17:42:53 +01:00
|
|
|
release=1
|
2015-06-26 20:06:09 +02:00
|
|
|
source=(http://www.cpan.org/src/5.0/$name-$version.tar.xz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2008-09-18 10:27:13 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./Configure -des \
|
2007-08-30 10:16:59 +02:00
|
|
|
-Dprefix=/usr \
|
2017-06-14 18:41:36 +02:00
|
|
|
-Dvendorprefix=/usr \
|
2010-09-14 21:03:41 +02:00
|
|
|
-Dprivlib=/usr/lib/perl5/${version%.*} \
|
|
|
|
-Dsitelib=/usr/lib/perl5/site_perl/${version%.*} \
|
2015-06-26 20:06:09 +02:00
|
|
|
-Dvendorlib=/usr/lib/perl5/site_perl/${version%.*} \
|
2007-08-30 10:16:59 +02:00
|
|
|
-Darchname=linux \
|
|
|
|
-Dman1ext=1pm \
|
|
|
|
-Dman3ext=3pm \
|
|
|
|
-Di_gdbm \
|
|
|
|
-Di_db \
|
2010-06-03 10:51:12 +00:00
|
|
|
-Duseshrplib \
|
|
|
|
-Dusethreads \
|
2007-08-30 10:16:59 +02:00
|
|
|
-Doptimize="$CFLAGS"
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-09-18 10:27:13 +02:00
|
|
|
|
2012-08-08 10:11:28 +02:00
|
|
|
ln -sf perl${version%-*} $PKG/usr/bin/perl
|
2018-11-21 10:42:03 +01:00
|
|
|
ln -sf perlbug.1pm $PKG/usr/share/man/man1/perlthanks.1pm
|
2008-09-18 10:27:13 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
find $PKG \
|
|
|
|
-iname 'TODO*' -or \
|
|
|
|
-iname 'Change*' -or \
|
|
|
|
-iname 'README*' -or \
|
|
|
|
-name '*.bs' -or \
|
2010-06-03 10:51:12 +00:00
|
|
|
-name '.packlist' -or \
|
|
|
|
-name 'perllocal.pod' | xargs rm
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
find $PKG -depth -empty -exec rmdir {} \;
|
|
|
|
chmod -R +w $PKG
|
|
|
|
}
|