archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libarchive / repos / core-x86_64 / PKGBUILD
blob8ff0085373047f30b0872e54b81f6a61c530146e
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 options=('debug')
15 validpgpkeys=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E'  # Martin Matuska <mm@FreeBSD.org>
16               'DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B') # Martin Matuska <martin@matuska.org>
17 source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
18 sha256sums=('9e2c1b80d5fbe59b61308fdfab6c79b5021d7ff4ff2489fb12daf0a96a83551d'
19             'SKIP')
21 build() {
22   cd "${pkgname}-${pkgver}"
24   ./configure \
25       --prefix=/usr \
26       --without-xml2 \
27       --without-nettle \
28       --disable-static
29   make
32 check() {
33   cd "${pkgname}-${pkgver}"
35   make check
38 package() {
39   cd "${pkgname}-${pkgver}"
41   make DESTDIR="$pkgdir" install
42   sed -i "s/iconv //" "$pkgdir"/usr/lib/pkgconfig/libarchive.pc
43   install -Dm0644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"