opkg

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

Commit: fa66a0fb1e0381d0dc885fb5039a62246688acbd
Parent: 632b301e2380ce68b4ee93f2e6c5ac5fb8d1dde5
Author: Randy Palamar
Date:   Sat, 11 Apr 2026 07:27:25 -0600

bzip2: import 1.0.8

from oasis. needed for unzip

Diffstat:
M.gitmodules | 3+++
Apkg/bzip2/gen.lua | 20++++++++++++++++++++
Apkg/bzip2/src | 1+
Apkg/bzip2/ver | 1+
Mpkg/gen.lua | 1+
Msets.lua | 1+
6 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -8,6 +8,9 @@ path = pkg/bearssl/src url = https://www.bearssl.org/git/BearSSL ignore = all +[submodule "pkg/bzip2/src"] + path = pkg/bzip2/src + url = git://sourceware.org/git/bzip2.git [submodule "pkg/cproc/src"] path = pkg/cproc/src url = https://git.sr.ht/~mcf/cproc diff --git a/pkg/bzip2/gen.lua b/pkg/bzip2/gen.lua @@ -0,0 +1,20 @@ +cflags{'-Wall'} + +pkg.hdrs = copy('$outdir/include', '$srcdir', {'bzlib.h'}) + +lib('libbz2.a', { + 'blocksort.c', + 'huffman.c', + 'crctable.c', + 'randtable.c', + 'compress.c', + 'decompress.c', + 'bzlib.c' +}) +exe('bzip2', {'bzip2.c', 'libbz2.a'}) + +file('bin/bzip2', '755', '$outdir/bzip2') +man{'bzip2.1'} +sym('bin/bzcat', 'bzip2') + +fetch 'git' diff --git a/pkg/bzip2/src b/pkg/bzip2/src @@ -0,0 +1 @@ +Subproject commit 6a8690fc8d26c815e798c588f796eabe9d684cf0 diff --git a/pkg/bzip2/ver b/pkg/bzip2/ver @@ -0,0 +1 @@ +1.0.8 r0 diff --git a/pkg/gen.lua b/pkg/gen.lua @@ -1,6 +1,7 @@ subgen('awk') subgen('b3sum') subgen('bearssl') +subgen('bzip2') subgen('cproc') subgen('curl') subgen('fspec-sync') diff --git a/sets.lua b/sets.lua @@ -2,6 +2,7 @@ local S = {} S.bin = { 'awk', + 'bzip2', 'cproc', 'curl', 'git',