db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / libarchive / trunk / PKGBUILD
blob76a0205c51f697a9c53718cf2f231f8182f8ba4b
1 # Maintainer: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
2 # Maintainer: Dan McGee <dan@archlinux.org>
4 pkgname=libarchive
5 pkgver=3.6.2
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' 'libcrypto.so' 'xz'
12          'zlib' 'zstd')
13 provides=('libarchive.so')
14 validpgpkeys=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E'  # Martin Matuska <mm@FreeBSD.org>
15               'DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B') # Martin Matuska <martin@matuska.org>
16 source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
17 sha256sums=('9e2c1b80d5fbe59b61308fdfab6c79b5021d7ff4ff2489fb12daf0a96a83551d'
18             'SKIP')
20 build() {
21   cd "${pkgname}-${pkgver}"
23   ./configure \
24       --prefix=/usr \
25       --without-xml2 \
26       --without-nettle \
27       --disable-static
28   make
31 check() {
32   cd "${pkgname}-${pkgver}"
34   make check
37 package() {
38   cd "${pkgname}-${pkgver}"
40   make DESTDIR="$pkgdir" install
41   sed -i "s/iconv //" "$pkgdir"/usr/lib/pkgconfig/libarchive.pc
42   install -Dm0644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"