core/libarchive/PKGBUILD

41 lines
1.0 KiB
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
2013-04-12 01:20:48 +08:00
2010-03-13 23:25:19 +08:00
pkgname=libarchive
2013-04-12 01:20:48 +08:00
pkgver=3.1.2
2013-07-20 08:11:44 +08:00
pkgrel=2
2010-03-13 23:25:19 +08:00
pkgdesc="library that can create and read several streaming archive formats"
2013-04-12 01:20:48 +08:00
arch=('i686' 'x86_64')
url="http://libarchive.org/"
2010-03-13 23:25:19 +08:00
license=('BSD')
2013-04-12 01:31:16 +08:00
depends=('acl' 'attr' 'bzip2' 'expat' 'lzo2>=2.06' 'openssl' 'xz' 'zlib')
2013-04-12 01:20:48 +08:00
source=("http://libarchive.org/downloads/$pkgname-$pkgver.tar.gz"
'0001-mtree-fix-line-filename-length-calculation.patch')
md5sums=('efad5a503f66329bb9d2f4308b5de98a'
'fda89c145bbcd793a96b06b463ef6a72')
2010-03-13 23:25:19 +08:00
build() {
2013-04-12 01:20:48 +08:00
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"
2010-03-13 23:25:19 +08:00
./configure --prefix=/usr --without-xml2
make
2010-03-13 23:25:19 +08:00
}
2013-04-12 01:20:48 +08:00
check() {
cd "$pkgname-$pkgver"
make check
}
2010-03-13 23:25:19 +08:00
package() {
2013-04-12 01:20:48 +08:00
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
2010-03-13 23:25:19 +08:00
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/libarchive/COPYING
2010-03-13 23:25:19 +08:00
}