Otok public index

apotocki/perl

apotocki/perl 5.44.0 (r1, linux)

Library
perl
Variant
linux, target linux
Channel
stable
Published
2026-11-07
Recipe source
https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5e in recipes/perl/5.44/linux/
Recipe SHA-256
a40d22dcb9e1d13e890754ed52b1015fb584a1c34a8d9bd1eed5e9b5de0ad484

Recipe files changed

Inputs

source.sha256505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91
source.urlhttps://www.cpan.org/src/5.0/perl-5.44.0.tar.xz

Platforms

linux

Toolchains

Recipe files

build.lua 961 bytes · raw
-- perl's own Configure, then make in the source tree, where Configure works.
function build(slice, options, deps)
    local p = slice.prefix
    local make = slice.toolchains.make
    -- no questions (-des); @INC relative to the program, which runs from the cache, not from where it was built; no
    -- manuals; none of the machine's database libraries, and no crypt(): libcrypt is libxcrypt's, not glibc's, so the
    -- libraries are glibc's alone
    otok.run({ "sh", "Configure", "-des", "-Dprefix=" .. p, "-Duserelocatableinc", "-Dman1dir=none", "-Dman3dir=none",
        "-Dcc=" .. slice.toolchain.cc, "-Dmake=" .. make, "-Ui_db", "-Ui_gdbm", "-Ui_ndbm", "-Ui_dbm", "-Ui_crypt", "-Ud_crypt",
        "-Ud_crypt_r", "-Dlibs=-lpthread -ldl -lm" }, { cwd = slice.source })
    otok.run({ make, "-j" .. slice.jobs }, { cwd = slice.source })
    otok.run({ make, "install" }, { cwd = slice.source })
    return { programs = { perl = p .. "/bin/perl" } }
end
recipe.toml 886 bytes · raw
# The otok recipe of Perl (https://github.com/apotocki/otok): the perl interpreter for the builds of other recipes, which
# name it as their toolchain (`perl = { default-recipe = "apotocki/perl" }`), on Linux: built from the release archive
# with its Configure and make.
[recipe]
api = 1
library = "perl"
name = "perl"
version = "5.44.0"
revision = 1
license = "Artistic-1.0-Perl OR GPL-1.0-or-later"
license-files = ["Artistic", "Copying"]
homepage = "https://www.perl.org"
description = "Perl 5, built from source."
keywords = ["perl", "interpreter", "tool"]

[tool]
programs = ["perl"]

[source]
url = "https://www.cpan.org/src/5.0/perl-5.44.0.tar.xz"
sha256 = "505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91"

[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]

[toolchains]
make = { version = ">= 3.81", default-recipe = "apotocki/make" }