#!/bin/sh
name="perl5"
short_desc="Practical Extraction and Report Language"
desc="Perl is a language that combines some of the features of C, sed, awk and
shell. See the manual page for more hype.  There are also many books
published by O'Reilly & Assoc. See pod/perlbook.pod for more
information."
category="lang"
version="5.38.2"
maintainer="ffqq@danwin1210.de"
www="https://www.perl.org/"
master_site="https://www.cpan.org/src/5.0"
source_name="perl-$version.tar.gz"
license_logic="single" # accepted values: single, and, or
licenses=("GPLv1")

build_dependencies=("devel/gmake" "lang/gcc")
run_dependencies=("system/glibc")

build_process() {
    cd perl-$version || exit 1
    sh Configure -des                                \
        -Dprefix=/usr                                \
        -Dvendorprefix=/usr                          \
        -Dman1dir=/usr/share/man/man1                \
        -Dman3dir=/usr/share/man/man3                \
        -Dpager="/usr/bin/less -isR"                 \
        -Duseshrplib                                 \
        -Dusethreads
    make -j$(nproc) || exit 1
    make DESTDIR="$TAMANDUA_STAGE_DIR" install || exit 1
}