summaryrefslogtreecommitdiff
path: root/repo/system/libarchive.xibuild
blob: bb6122f287a4a6d218bd867a039276123bb1b98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

MAKEDEPS=(make autoconf libtool libpth libiconv)
DEPS=(acl bzip2 expat lz4 openssl xz zlib zstd)

PKG_VER=3.5.2
#SOURCE=https://github.com/libarchive/libarchive/releases/download/v$PKG_VER/libarchive-$PKG_VER.tar.xz
SOURCE=https://github.com/libarchive/libarchive

DESC="A library that provides a single interface for reading and writing various compression formats"

prepare () {
    sed -i '436a if ((OSSL_PROVIDER_load(NULL, "legacy")) == NULL) \
      return (ARCHIVE_FAILED);' libarchive/archive_digest.c
    ./build/autogen.sh
}

build () {
    ./configure --prefix=/usr --disable-static --without-xml2 --without-nettle
    make 
}

package() {
    make DESTDIR=$PKG_DEST install
}