2023-03-05 04:11:42 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: https://github.com/libarchive/libarchive/releases/download/v{{version}}/libarchive-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-03-05 04:11:42 +03:00
|
|
|
|
|
|
|
versions:
|
2023-09-12 01:26:25 +03:00
|
|
|
github: libarchive/libarchive/releases
|
|
|
|
strip: /^Libarchive /
|
2023-03-05 04:11:42 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnu.org/coreutils: '*'
|
|
|
|
lz4.org: 1
|
|
|
|
tukaani.org/xz: 5
|
|
|
|
facebook.com/zstd: 1
|
|
|
|
sourceware.org/bzip2: 1
|
|
|
|
libexpat.github.io: 2
|
|
|
|
zlib.net: 1
|
|
|
|
|
|
|
|
build:
|
2024-04-24 20:53:14 +03:00
|
|
|
script:
|
|
|
|
- ./configure $ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }}
|
|
|
|
- make install
|
|
|
|
|
|
|
|
# https://github.com/libarchive/libarchive/issues/1819
|
|
|
|
- run: 'sed -i ''/Requires\.private: iconv/d'' libarchive.pc'
|
|
|
|
working-directory: '{{prefix}}/lib/pkgconfig'
|
2024-06-07 21:51:17 +03:00
|
|
|
|
|
|
|
- run: find . -name \*.la -exec rm {} \;
|
|
|
|
working-directory: '{{prefix}}/lib'
|
2023-03-05 04:11:42 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{prefix}}
|
2023-10-02 03:41:57 +03:00
|
|
|
- --without-lzo2 # Use lzop binary instead of lzo2 due to GPL
|
|
|
|
- --without-nettle # xar hashing option but GPLv3
|
|
|
|
- --without-xml2 # xar hashing option but tricky dependencies
|
2023-03-05 04:11:42 +03:00
|
|
|
- --without-openssl # mtree hashing now possible without OpenSSL
|
2023-10-02 03:41:57 +03:00
|
|
|
- --with-expat # best xar hashing option
|
2023-03-05 04:11:42 +03:00
|
|
|
linux/x86-64:
|
2023-10-02 03:41:57 +03:00
|
|
|
CFLAGS: '$CFLAGS -fPIC'
|
|
|
|
CXXFLAGS: '$CXXFLAGS -fPIC'
|
|
|
|
LDFLAGS: '$LDFLAGS -pie'
|
2023-03-05 04:11:42 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/bsdcat
|
|
|
|
- bin/bsdcpio
|
|
|
|
- bin/bsdtar
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
bsdtar -cf test.tar.gz fixture.c
|