33 lines
854 B
Plaintext
33 lines
854 B
Plaintext
# Description: Handle Common Gateway Interface requests and responses
|
|
# URL: https://metacpan.org/release/CGI
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: p5-html-parser
|
|
|
|
name=p5-cgi
|
|
version=4.61
|
|
release=1
|
|
source=(https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-$version.tar.gz)
|
|
|
|
unpack_source() {
|
|
mkdir $SRC/tarballs
|
|
for file in ${source[@]}; do
|
|
case ${file##*/} in
|
|
CGI-*.tar.gz)
|
|
echo "Unpacking $(get_filename $file)"
|
|
bsdtar -p -o -C $SRC -xf $(get_filename $file) ;;
|
|
*)
|
|
cp $(get_filename $file) $SRC ;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd CGI-$version
|
|
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
|
|
unset PERL5LIB PERL_MM_OPT
|
|
/usr/bin/perl Makefile.PL
|
|
make
|
|
make install INSTALLDIRS=vendor DESTDIR=$PKG
|
|
find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
|
|
}
|