pkgname=libarchive pkgver=3.8.1 pkgdesc='Multi-format archive and compression library' arch=('x86_64') homepage='https://libarchive.org/' license=('BSD-2-Clause') sources=("${pkgname}-${pkgver}.tar.xz") urls=("https://github.com/libarchive/libarchive/releases/download/v${pkgver}/${sources[0]}") md5sums=("80fd1a7acc4da7c7d4a5f9f96df6e3ff") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { ./configure --prefix=/usr --disable-static && make } src_check() { make check } src_install() { make DESTDIR="${pkgdir}" install ln -sfv bsdunzip ${pkgdir}/usr/bin/unzip }