summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup-abuild30
1 files changed, 30 insertions, 0 deletions
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};