#!/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