# Contributor: Sergei Lukin # Maintainer: Natanael Copa pkgname=libarchive pkgver=3.4.0 pkgrel=0 pkgdesc="library that can create and read several streaming archive formats" url="https://libarchive.org/" arch="all" license="BSD-2-Clause AND BSD-3-Clause AND Public-Domain" makedepends="zlib-dev bzip2-dev xz-dev lz4-dev acl-dev openssl-dev expat-dev attr-dev zstd-dev" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-tools" source="https://github.com/libarchive/libarchive/releases/download/v$pkgver/libarchive-$pkgver.tar.gz" # secfixes: # 3.4.0-r0: # - CVE-2019-18408 # 3.3.2-r1: # - CVE-2017-14166 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --without-xml2 make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } tools() { pkgdesc="libarchive tools bsdtar and bsdcpio" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="2f9e2a551a6bcab56fb1a030b5d656df7299a3d151465aa02f0420d344d2fada49dee4755b3abff9095f62519e14dc9af8afa1695ecc6d5fdb4f0b28e6ede852 libarchive-3.4.0.tar.gz"