core/perl/Pkgfile

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Perl programming language
# URL: http://www.perl.org/
# 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 16:26:10 +01:00
name=perl
2009-08-25 16:04:40 +02:00
version=5.10.1
2008-09-18 10:27:13 +02:00
release=1
2009-08-25 16:04:40 +02:00
source=(http://www.cpan.org/src/$name-$version.tar.bz2)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2008-09-18 10:27:13 +02:00
2006-02-23 16:26:10 +01:00
./Configure -des \
2007-08-30 10:16:59 +02:00
-Dprefix=/usr \
-Darchname=linux \
-Dman1ext=1pm \
-Dman3ext=3pm \
-Dman1dir=/usr/man/man1 \
-Dman3dir=/usr/man/man3 \
-Di_gdbm \
-Di_db \
-Duseshrplib=true \
-Doptimize="$CFLAGS"
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
2008-09-18 10:27:13 +02:00
2006-02-23 16:26:10 +01:00
ln -sf perl$version $PKG/usr/bin/perl
ln -sf c2ph $PKG/usr/bin/pstruct
ln -sf s2p $PKG/usr/bin/psed
ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
2008-09-18 10:27:13 +02:00
2006-02-23 16:26:10 +01:00
find $PKG \
-iname 'TODO*' -or \
-iname 'Change*' -or \
-iname 'README*' -or \
-name '*.bs' -or \
-name .packlist -or \
-name perllocal.pod | xargs rm
find $PKG -depth -empty -exec rmdir {} \;
chmod -R +w $PKG
}