blob: 699f0476e0b121362fc5ea52a037c238221fb539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/mkpkg
# description: Perl programming language
# url: https://www.perl.org/
name=perl
version=5.44.0
release=2
source=(https://www.cpan.org/src/5.0/$name-$version.tar.gz)
sha256sums=(
"3b855066b92491cb40e86affb1ca57d1a388aa43e51b91c7806a32c2f65f96c3"
)
build() {
cd $name-$version
./Configure -des \
-Dprefix=/usr \
-Duseshrplib \
-Dusethreads \
-Ui_gdbm \
-Ui_ndbm \
-Ui_db \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Doptimize="$CFLAGS"
make
make DESTDIR=$PKG install
# Remove man pages (perldoc is enough)
rm -rf $PKG/usr/share/man
# Cleanup junk
find $PKG \( \
-iname 'TODO*' -o \
-iname 'Change*' -o \
-iname 'README*' -o \
-name '*.bs' -o \
-name '.packlist' \
\) -delete
find $PKG -depth -type d -empty -delete
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|