From 89a6429453191dfd00ed72b5bcc92f4aa8c24899 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Sat, 7 Dec 2024 20:36:32 -0600 Subject: setup-abuild: add libarchive. required by abuild. --- setup-abuild | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/setup-abuild b/setup-abuild index 93d2046..67c5f43 100755 --- a/setup-abuild +++ b/setup-abuild @@ -394,3 +394,33 @@ test ! -f ._${natt}-${vatt} && ) touch ._${natt}-${vatt}; rm -fr ${natt}-${vatt}; + + +## +# libarchive +# +nlar=libarchive; +vlar=0348e24bab24cc46642d29e3ceab64df22553298; # until autoconf 2.71 +test ! -f ._${nlar}-${vlar} && +( + test ! -d ${nlar}-${vlar} \ + && git clone https://github.com/libarchive/${nlar}.git ${nlar}-${vlar} \ + ; + cd ${nlar}-${vlar}; + git checkout ${vlar}; + autoreconf -fiv; + CFLAGS="-static" \ + ./configure \ + --prefix="${DEST}" \ + --host="$(${CC} -dumpmachine)" \ + --enable-static \ + --disable-shared \ + ; + make -j$(nproc) install; + # These are required by 'abuild' instead of GNU tar. + for k in cat cpio tar; do + ln -sf bsd${k} "${DEST}"/bin/${k}; + done +) +touch ._${nlar}-${vlar}; +rm -fr ${nlar}-${vlar}; -- cgit v1.2.3-70-g09d2