mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
|
|
pkgname=libarchive
|
|
pkgver=3.1.2
|
|
pkgrel=3
|
|
pkgdesc="library that can create and read several streaming archive formats"
|
|
arch=('x86_64')
|
|
url="http://libarchive.org/"
|
|
license=('BSD')
|
|
depends=('acl' 'attr' 'bzip2' 'expat' 'lzo2>=2.06' 'openssl' 'xz' 'zlib')
|
|
source=("http://libarchive.org/downloads/$pkgname-$pkgver.tar.gz"
|
|
'0001-mtree-fix-line-filename-length-calculation.patch')
|
|
md5sums=('efad5a503f66329bb9d2f4308b5de98a'
|
|
'fda89c145bbcd793a96b06b463ef6a72')
|
|
|
|
build() {
|
|
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"
|
|
|
|
./configure --prefix=/usr --without-xml2
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/libarchive/COPYING
|
|
}
|