blob: f480c2cd9bdb76baabb4910d871665e4790de277 (
plain)
1 # Description: Perl programming language
2 # URL: http://www.perl.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: db gdbm
5
6 name=perl
7 version=5.12.1
8 release=1
9 source=(http://www.cpan.org/src/5.0/$name-$version.tar.bz2)
10
11 build() {
12 cd $name-$version
13
14 ./Configure -des \
15 -Dprefix=/usr \
16 -D{priv,site}lib=/usr/lib/perl5/${version%.*} \
17 -Darchname=linux \
18 -Dman1ext=1pm \
19 -Dman3ext=3pm \
20 -Dman1dir=/usr/man/man1 \
21 -Dman3dir=/usr/man/man3 \
22 -Di_gdbm \
23 -Di_db \
24 -Duseshrplib \
25 -Dusethreads \
26 -Doptimize="$CFLAGS"
27 make
28 make DESTDIR=$PKG install
29
30 ln -sf perl$version $PKG/usr/bin/perl
31 ln -sf c2ph $PKG/usr/bin/pstruct
32 ln -sf s2p $PKG/usr/bin/psed
33 ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
34 ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
35
36 find $PKG \
37 -iname 'TODO*' -or \
38 -iname 'Change*' -or \
39 -iname 'README*' -or \
40 -name '*.bs' -or \
41 -name '.packlist' -or \
42 -name 'perllocal.pod' | xargs rm
43
44 find $PKG -depth -empty -exec rmdir {} \;
45 chmod -R +w $PKG
46 }
|