CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Global cleanup and fixed ArchMaintainer's tag on some ports
[ports/core-arm.git] / perl / Pkgfile
1 # Description: Perl programming language
2 # URL: http://www.perl.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: db gdbm
6
7 name=perl
8 version=5.12.4
9 release=1
10 source=(http://www.cpan.org/src/5.0/$name-$version.tar.bz2)
11
12 build() {
13 cd $name-$version
14
15 ./Configure -des \
16 -Dprefix=/usr \
17 -Dprivlib=/usr/lib/perl5/${version%.*} \
18 -Dsitelib=/usr/lib/perl5/site_perl/${version%.*} \
19 -Darchname=linux \
20 -Dman1ext=1pm \
21 -Dman3ext=3pm \
22 -Dman1dir=/usr/man/man1 \
23 -Dman3dir=/usr/man/man3 \
24 -Di_gdbm \
25 -Di_db \
26 -Duseshrplib \
27 -Dusethreads \
28 -Doptimize="$CFLAGS"
29 make
30 make DESTDIR=$PKG install
31
32 ln -sf perl$version $PKG/usr/bin/perl
33 ln -sf c2ph $PKG/usr/bin/pstruct
34 ln -sf s2p $PKG/usr/bin/psed
35 ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
36 ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
37
38 find $PKG \
39 -iname 'TODO*' -or \
40 -iname 'Change*' -or \
41 -iname 'README*' -or \
42 -name '*.bs' -or \
43 -name '.packlist' -or \
44 -name 'perllocal.pod' | xargs rm
45
46 find $PKG -depth -empty -exec rmdir {} \;
47 chmod -R +w $PKG
48 }