opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 7105c5cdd142dab5f1e5f85a327a7c4b18a04aca
Parent: ac99c1f8a836239e82c48fa24393242495796c70
Author: Randy Palamar
Date:   Wed,  4 Oct 2023 06:31:45 -0600

add pigz from oasis

Diffstat:
M.gitmodules | 3+++
Apkg/arch/gen.lua | 1+
Apkg/arch/pigz/gen.lua | 18++++++++++++++++++
Apkg/arch/pigz/src | 1+
Apkg/arch/pigz/ver | 1+
Mpkg/gen.lua | 1+
Msets.lua | 1+
7 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -4,6 +4,9 @@ [submodule "pkg/admin/spm/src"] path = pkg/admin/spm/src url = https://github.com/rnpnr/spm.git +[submodule "pkg/arch/pigz/src"] + path = pkg/arch/pigz/src + url = https://github.com/madler/pigz.git [submodule "pkg/crypt/b3sum/src"] path = pkg/crypt/b3sum/src url = https://git.sr.ht/~mcf/b3sum diff --git a/pkg/arch/gen.lua b/pkg/arch/gen.lua @@ -0,0 +1 @@ +subgen('pigz') diff --git a/pkg/arch/pigz/gen.lua b/pkg/arch/pigz/gen.lua @@ -0,0 +1,18 @@ +cflags({ + '-Wall', '-Wextra', '-Wno-clobbered', '-Wno-stringop-overflow', + '-D NOZOPFLI', + '-isystem $builddir/pkg/libs/zlib/include', +}) + +exe('pigz', [[ + pigz.c yarn.c try.c + $builddir/pkg/libs/zlib/libz.a +]], {'pkg/libs/zlib/headers'}) +file('bin/pigz', '755', '$outdir/pigz') +man({'pigz.1'}) +for _, alias in ipairs({'gzip', 'gunzip', 'zcat'}) do + sym('bin/'..alias, 'pigz') + sym('share/man/man1/'..alias..'.1', 'pigz.1') +end + +fetch('git') diff --git a/pkg/arch/pigz/src b/pkg/arch/pigz/src @@ -0,0 +1 @@ +Subproject commit fe4894f57739e3039a2ffc2a2a360d35e19bacbe diff --git a/pkg/arch/pigz/ver b/pkg/arch/pigz/ver @@ -0,0 +1 @@ +2.8 r0 diff --git a/pkg/gen.lua b/pkg/gen.lua @@ -1,4 +1,5 @@ subgen('admin') +subgen('arch') subgen('crypt') subgen('devel') subgen('editors') diff --git a/sets.lua b/sets.lua @@ -9,6 +9,7 @@ S.bin = { 'man-pages-posix', 'mandoc', 'openbsd', + 'pigz', 'pwgen', 'samurai', 'sbase',