# libarchive 3.7.7 — lectura/escritura de múltiples formatos de archivo comprimido (libarchive.so). # Campaña KDE (ADR 0011): motor de ark (el gestor de comprimidos). Autotools + zig-cc/musl. # # Formatos: zlib + bz2 + lzma/xz + zstd + openssl(libcrypto, cifrado zip/7z), todos como .so dinámicos # (bzip2-shared/xz-shared aportan el libbz2.so/liblzma.so PIC; el .a canónico sin PIC no enlaza en un .so). # Se desactivan libs ausentes (lz4, libb2, xml2, nettle) para que configure no autodetecte nada del host y # el cierre sea explícito. name = "libarchive" version = "3.7.7" license = "BSD-2-Clause" [source] tarball = "https://github.com/libarchive/libarchive/releases/download/v3.7.7/libarchive-3.7.7.tar.xz" sha256 = "879acd83c3399c7caaee73fe5f7418e06087ab2aaf40af3e99b9e29beb29faee" [build] compiler = "zig-cc" target = "x86_64-linux-musl" link = "dynamic" flags = [] [build.phases] configure = '''./configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-static --enable-shared \ --with-zlib --with-bz2lib --with-lzma --with-zstd --with-openssl \ --without-lz4 --without-libb2 --without-xml2 --without-expat --without-nettle --without-cng \ --disable-bsdtar --disable-bsdcpio --disable-bsdcat --disable-bsdunzip''' compile = 'make -j"$(nproc)"' install = "make install DESTDIR=/out && find /out -name '*.la' -delete" [deps] build = ["pkgconf", "zlib-shared", "bzip2-shared", "xz-shared", "zstd", "openssl"]