libarchive ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Clover 86e2b96c5f
Fix build and bump dependency versions (#2)
* fix build on Windows
* fix build on linux
* bump upstream libarchive to 3.8.9
* github actions: bump Zig version
* ci: bump mlugg/setup-zig to v2
2026-09-21 22:03:38 +02:00
.github/workflows Fix build and bump dependency versions (#2) 2026-09-21 22:03:38 +02:00
.gitattributes update to 0.14.0 2025-07-17 09:57:47 +02:00
.gitignore Fix build and bump dependency versions (#2) 2026-09-21 22:03:38 +02:00
build.zig Fix build and bump dependency versions (#2) 2026-09-21 22:03:38 +02:00
build.zig.zon Fix build and bump dependency versions (#2) 2026-09-21 22:03:38 +02:00
LICENSE init 2023-10-15 23:57:56 -04:00
README.md fix macos builds 2025-07-17 10:17:36 +02:00

CI

libarchive

This is libarchive, packaged for Zig.

Installation

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/libarchive.git#3.8.1

You can then import libarchive in your build.zig with:

const bzip_dependency = b.dependency("libarchive", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("archive"));

Note

Cross compiling to MacOS requires CoreServices.