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

MAKEDEPS=(make )
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"

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

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

package() {
    make DESTDIR=$PKG_DEST install
}