#!/bin/mkpkg
# description: Multi-format archive and compression library
# url: https://libarchive.org/

name=libarchive
version=3.8.2
release=1
depends=(acl bzip2 xz zlib zstd)
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
build() {
    cd $name-$version

    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man \
        --without-xml2 \
        --without-nettle \
        --without-libb2 \
        --without-iconv \
        --disable-static

    make
    make DESTDIR=$PKG install

    rm -f $PKG/usr/lib/*.la
}

# vim: filetype=sh
