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