jobcore/libarchive/PKGBUILD

63 lines
1.9 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libarchive
pkgver=3.6.1
2022-08-11 23:51:55 +02:00
pkgrel=02
pkgdesc='Multi-format archive and compression library'
2022-03-20 13:19:37 +01:00
arch=('x86_64')
url='https://libarchive.org/'
2022-08-11 23:51:55 +02:00
depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib' 'zstd')
2022-03-20 13:19:37 +01:00
provides=('libarchive.so')
#options=('debug')
2022-08-11 23:51:55 +02:00
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
'0001-libarchive-Handle-a-calloc-returning-NULL-fixes-1754.patch'
'0002-Validate-entry_bytes_remaining-in-pax_attribute.patch')
2022-03-31 03:00:18 +02:00
2022-08-11 23:51:55 +02:00
prepare() {
cd "$pkgname-$pkgver"
patch -Np1 < ../0001-libarchive-Handle-a-calloc-returning-NULL-fixes-1754.patch
patch -Np1 < ../0002-Validate-entry_bytes_remaining-in-pax_attribute.patch
}
2022-03-20 13:19:37 +01:00
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--without-xml2 \
--without-nettle \
--disable-static
make
}
check() {
cd $pkgname-$pkgver
2022-08-11 23:51:55 +02:00
2022-03-20 13:19:37 +01:00
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm0644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"
}
#---- license gpg-key sha256sums ----
license=('BSD')
validpgpkeys=(A5A45B12AD92D964B89EEE2DEC560C81CEC2276E) # Martin Matuska <mm@FreeBSD.org>
2022-03-20 13:19:37 +01:00
sha256sums=(5a411aceb978f43e626f0c2d1812ddd8807b645ed892453acabd532376c148e6 # libarchive-3.6.1.tar.xz
2022-08-11 23:51:55 +02:00
7d881045e203c871b095376709e5c5dc37aab045e88fa9de0d517cdbe1c5bc58 # libarchive-3.6.1.tar.xz.asc
bc52b2b2b99915894b436c97872d5d50e94c8c7483865a028fad9a710c837fa7 # 0001-libarchive-Handle-a-calloc-returning-NULL-fixes-1754.patch
38c8d9b00f3259558e67e6fdf790ccbf8ecbba2de101476c2416d87b1679bcb9) # 0002-Validate-entry_bytes_remaining-in-pax_attribute.patch
2022-09-06 22:43:35 +02:00