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

DEPS=(acl bzip2 expat lz4 openssl xz zlib zstd)

SOURCE=https://github.com/libarchive/libarchive/archive/refs/tags/v3.4.3.tar.gz

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

build () {
    /bin/sh build/autogen.sh
    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
}