#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=libarchive pkgver=3.7.3 pkgrel=03 pkgdesc='Multi-format archive and compression library' url='https://libarchive.org/' depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib' 'zstd' 'libcrypto.so') provides=('libarchive.so') #options=('debug') source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc} 'libarchive-fix-OOB-in-rar-e8-filter-2135.patch::https://github.com/libarchive/libarchive/commit/eb7939b24a681a04648a59cdebd386b1e9dc9237.patch') prepare() { cd "${pkgname}-${pkgver}" patch -Np1 < ../libarchive-fix-OOB-in-rar-e8-filter-2135.patch } build() { cd $pkgname-$pkgver ./configure \ --prefix=/usr \ --without-xml2 \ --without-nettle \ --disable-static make } check() { cd $pkgname-$pkgver make check } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install # sed -i "s/iconv //" "$pkgdir"/usr/lib/pkgconfig/libarchive.pc install -Dm0644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING" } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=('BSD') validpgpkeys=(A5A45B12AD92D964B89EEE2DEC560C81CEC2276E # Martin Matuska DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B) # Martin Matuska sha256sums=(63e7a7174638fc7d6b79b4c8b0ad954e0f4f45abe7239c1ecb200232aa9a43d2 # libarchive-3.7.3.tar.xz f421af9d30a31b1a0741846df7961da2e59d45bbf566090993c3994a07ff0ac9 # libarchive-3.7.3.tar.xz.asc 78b62ba75f4f6254ae6a80528ecfc429eb2d9ce01924c4ef5ee7a91fd284bea8) # libarchive-tar-make-error-reporting-more-robust.patch ## a5c080dbc12eb605efae7a21d7dd185f22dd2dcbfa2f36392ce7664464e0004f libarchive-3.7.3-03-x86_64.pkg.tar.lz