# Contributor: Sergei Lukin # Maintainer: A. Wilcox pkgname=libarchive pkgver=3.4.1 pkgrel=0 pkgdesc="Multi-format archive and compression library" url="https://libarchive.org/" arch="all" options="!check" # needs EUC-JP and KOI8R support in iconv license="BSD-2-Clause AND BSD-3-Clause AND Public-Domain" depends="" makedepends="zlib-dev bzip2-dev xz-dev lz4-dev acl-dev openssl-dev expat-dev attr-dev zstd-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="https://github.com/libarchive/libarchive/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz seek-error.patch " # secfixes: # 3.3.2-r1: # - CVE-2017-14166 build () { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-expat \ --without-xml2 \ --with-bz2lib \ --with-zlib \ --with-lzma \ --with-lz4 \ --enable-acl \ --enable-xattr \ ac_cv_header_linux_fiemap_h=no make } check() { make check } package() { make DESTDIR="$pkgdir" install } tools() { pkgdesc="libarchive tools - bsdtar and bsdcpio" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ ln -s bsdtar "$subpkgdir"/usr/bin/tar ln -s bsdcpio "$subpkgdir"/usr/bin/cpio } sha512sums="fa7e9e5c8c00cd7e98f0ff373c300771f0a87317bca031c3030bac29b96b02ab66cf34905147e4135824bf9cdfdd1dedf3032e93d6d706c9a11e968da1ed8dad libarchive-3.4.1.tar.gz ff2567f243ba7e9ce20bc4f7fa422a922c5c23049004efdd8f71f29f93ab9be9aadd4c100e8c6dca318442d583fbad9bd6466017a23f83af18b9808c718b9fce seek-error.patch"