summaryrefslogtreecommitdiff
path: root/repo/system/libarchive.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 14:08:01 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 14:08:01 +0000
commitd2d97f84d5c037d7a6b8db6c497a5987030b7335 (patch)
treebb533f1d00de99e9de055ee1056019b7915de276 /repo/system/libarchive.xibuild
parentf80183aee0f11dd9db7310cdca5bb310e458442d (diff)
fixed pcre and moved libarchive
Diffstat (limited to 'repo/system/libarchive.xibuild')
-rw-r--r--repo/system/libarchive.xibuild20
1 files changed, 20 insertions, 0 deletions
diff --git a/repo/system/libarchive.xibuild b/repo/system/libarchive.xibuild
new file mode 100644
index 0000000..80c60c4
--- /dev/null
+++ b/repo/system/libarchive.xibuild
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+DEPS=(acl bzip2 expat lz4 openssl xz zlib zstd)
+
+SOURCE=https://github.com/libarchive/libarchive/releases/download/v3.5.2/libarchive-3.5.2.tar.gz
+
+DESC="A library that provides a single interface for reading and writing various compression formats"
+
+build () {
+ sed -i '436a if ((OSSL_PROVIDER_load(NULL, "legacy")) == NULL) \
+ return (ARCHIVE_FAILED);' libarchive/archive_digest.c
+
+ ./configure --prefix=/usr --disable-static
+
+ make
+}
+
+package() {
+ make DESTDIR=$PKG_DEST install
+}