jobcore/libarchive/PKGBUILD

64 lines
1.9 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libarchive
pkgver=3.7.4
pkgrel=01
pkgdesc='Multi-format archive and compression library'
url='https://libarchive.org/'
#depends=('acl' 'libacl.so' 'bzip2' 'libbz2.so' 'libxml2' 'libxml2.so' 'lz4' 'openssl' 'libcrypto.so' 'xz' 'liblzma.so' 'zlib' 'libz.so')
depends=('acl' 'libacl.so' 'bzip2' 'libbz2.so' 'lz4' 'openssl' 'libcrypto.so' 'xz' 'liblzma.so' 'zlib' 'libz.so')
provides=('libarchive.so')
#options=('debug')
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
#prepare() {
# cd "${pkgname}-${pkgver}"
# patch -Np1 < ../libarchive-fix-OOB-in-rar-e8-filter-2135.patch
#}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--without-nettle \
--without-zstd \
--without-xml2 \
--disable-static
make
}
# they take hours and hours and no progress ... so we run --nocheck build
#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 <mm@FreeBSD.org>
DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B) # Martin Matuska <martin@matuska.org>
sha256sums=(f887755c434a736a609cbd28d87ddbfbe9d6a3bb5b703c22c02f6af80a802735
'SKIP')
## 0b7363e3ef39ed030fd86182b2bcf706c9631986f8b492f89241aee37739f960 libarchive-3.7.4-01-x86_64.pkg.tar.lz