mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 10:54:36 +08:00
32 lines
671 B
Bash
32 lines
671 B
Bash
pkgname=libarchive
|
|
pkgver=3.2.2
|
|
pkgrel=4
|
|
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' 'lzo' 'nettle' 'xz' 'zlib')
|
|
provides=('libarchive.so')
|
|
source=("http://libarchive.org/downloads/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('1ec00b7dcaf969dd2a5712f85f23c764')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
./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
|
|
}
|