OCaml 4.14.0 rebuild
[arch-packages.git] / libarchive / trunk / PKGBUILD
blobcfce66c66bfe543fc662d321c142e5956dd9a67d
1 # Maintainer: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
2 # Maintainer: Dan McGee <dan@archlinux.org>
4 pkgname=libarchive
5 pkgver=3.6.1
6 pkgrel=2
7 pkgdesc='Multi-format archive and compression library'
8 arch=('x86_64')
9 url='https://libarchive.org/'
10 license=('BSD')
11 depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib' 'zstd')
12 provides=('libarchive.so')
13 options=('debug')
14 validpgpkeys=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E') # Martin Matuska <mm@FreeBSD.org>
15 source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
16         '0001-libarchive-Handle-a-calloc-returning-NULL-fixes-1754.patch'
17         '0002-Validate-entry_bytes_remaining-in-pax_attribute.patch')
18 sha256sums=('5a411aceb978f43e626f0c2d1812ddd8807b645ed892453acabd532376c148e6'
19             'SKIP'
20             'bc52b2b2b99915894b436c97872d5d50e94c8c7483865a028fad9a710c837fa7'
21             '38c8d9b00f3259558e67e6fdf790ccbf8ecbba2de101476c2416d87b1679bcb9')
23 prepare() {
24   cd "${pkgname}-${pkgver}"
26   patch -Np1 < ../0001-libarchive-Handle-a-calloc-returning-NULL-fixes-1754.patch
27   patch -Np1 < ../0002-Validate-entry_bytes_remaining-in-pax_attribute.patch
30 build() {
31   cd "${pkgname}-${pkgver}"
33   ./configure \
34       --prefix=/usr \
35       --without-xml2 \
36       --without-nettle \
37       --disable-static
38   make
41 check() {
42   cd "${pkgname}-${pkgver}"
44   make check
47 package() {
48   cd "${pkgname}-${pkgver}"
50   make DESTDIR="$pkgdir" install
51   install -Dm0644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"