# $Id: PKGBUILD 75233 2010-04-01 03:37:25Z allan $ # Maintainer: Dan McGee # Maintainer: Aaron Griffin pkgname=libarchive pkgver=2.8.4 pkgrel=1 pkgdesc="library that can create and read several streaming archive formats" arch=(i686 x86_64) url="http://libarchive.googlecode.com/" license=('BSD') depends=('zlib' 'bzip2' 'xz-utils' 'acl' 'openssl>=1.0.0' 'expat') source=(http://libarchive.googlecode.com/files/libarchive-$pkgver.tar.gz) md5sums=('83b237a542f27969a8d68ac217dc3796') # pacman.static build fails unless we keep the libtool files (or unless we link # the missing symbols inside the libarchive .a static lib, but that is dirty) options=(libtool) # keep an upgrade path for older installations #PKGEXT='.pkg.tar.gz' build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --without-xml2 make || return 1 } package() { cd $startdir/src/$pkgname-$pkgver make DESTDIR=$startdir/pkg install # install license mkdir -p $startdir/pkg/usr/share/licenses/libarchive install -m644 COPYING $startdir/pkg/usr/share/licenses/libarchive/ }