summaryrefslogtreecommitdiffstats
path: root/abs/core/libarchive/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-05-24 05:51:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-05-24 05:51:14 (GMT)
commitcf2dade6c2a196668e54103922599c08a7450a72 (patch)
tree73070fa0c9545be206d763c3a1adae477860e02e /abs/core/libarchive/PKGBUILD
parent7f56bba425eeaa96231a665a7f0d823dbea98c4f (diff)
downloadlinhes_pkgbuild-cf2dade6c2a196668e54103922599c08a7450a72.zip
linhes_pkgbuild-cf2dade6c2a196668e54103922599c08a7450a72.tar.gz
linhes_pkgbuild-cf2dade6c2a196668e54103922599c08a7450a72.tar.bz2
libarchive: update to 3.4.3
Diffstat (limited to 'abs/core/libarchive/PKGBUILD')
-rw-r--r--abs/core/libarchive/PKGBUILD62
1 files changed, 21 insertions, 41 deletions
diff --git a/abs/core/libarchive/PKGBUILD b/abs/core/libarchive/PKGBUILD
index 4bb4c70..5893a0e 100644
--- a/abs/core/libarchive/PKGBUILD
+++ b/abs/core/libarchive/PKGBUILD
@@ -1,59 +1,39 @@
-# $Id$
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=libarchive
-pkgver=3.1.2
-pkgrel=10
-pkgdesc="library that can create and read several streaming archive formats"
-arch=('i686' 'x86_64')
-url="http://libarchive.org/"
+pkgver=3.4.3
+pkgrel=1
+pkgdesc='Multi-format archive and compression library'
+arch=('x86_64')
+url='https://libarchive.org/'
license=('BSD')
-depends=('acl' 'attr' 'bzip2' 'expat' 'lzo' 'nettle>=3.2-1' 'openssl' 'xz' 'zlib')
-options=('strip' 'debug' 'libtool')
+depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib' 'zstd')
provides=('libarchive.so')
-source=("http://libarchive.org/downloads/$pkgname-$pkgver.tar.gz"
- '0001-mtree-fix-line-filename-length-calculation.patch'
- '0001-Limit-write-requests-to-at-most-INT_MAX.patch'
- 'libarchive-3.1.2-acl.patch'
- 'libarchive-3.1.2-sparce-mtree.patch')
-md5sums=('efad5a503f66329bb9d2f4308b5de98a'
- 'fda89c145bbcd793a96b06b463ef6a72'
- '9bf80940bd3ce861137a0a8dcacf5705'
- 'a5c995661c62429ceff2c23ea322393b'
- 'cb344a879b3c4550fe3faf86c3826f23')
+validpgpkeys=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E') # Martin Matuska <mm@FreeBSD.org>
+source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
+sha256sums=('0bfc3fd40491768a88af8d9b86bf04a9e95b6d41a94f9292dbc0ec342288c05f'
+ 'SKIP')
-prepare() {
- cd "$pkgname-$pkgver"
-
- # https://code.google.com/p/libarchive/issues/detail?id=301
- # upstream commit e65bf287f0133426b26611fe3e80b51267987106
- patch -Np1 -i "$srcdir/0001-mtree-fix-line-filename-length-calculation.patch"
-
- # https://code.google.com/p/libarchive/issues/detail?id=329
- patch -Np1 -i "$srcdir/libarchive-3.1.2-acl.patch"
-
- # CVE-2013-0211
- patch -Np1 -i "$srcdir/0001-Limit-write-requests-to-at-most-INT_MAX.patch"
+build() {
+ cd $pkgname-$pkgver
- # upstream commit 977bf2a4 - improved mtree support
- patch -p1 -i $srcdir/libarchive-3.1.2-sparce-mtree.patch
-}
+ ./configure \
+ --prefix=/usr \
+ --without-xml2 \
+ --without-nettle \
+ --disable-static
-build() {
- cd "$pkgname-$pkgver"
- ./configure --prefix=/usr --without-xml2
make
}
check() {
- cd "$pkgname-$pkgver"
-
+ cd $pkgname-$pkgver
make check
}
package() {
- cd "$pkgname-$pkgver"
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
-
- install -D -m644 COPYING "$pkgdir"/usr/share/licenses/libarchive/COPYING
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"
}