summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libarchive/PKGBUILD
blob: c8209a741bc07e6ffe6ddf1cc472dddb81d4d400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 24591 2009-01-18 20:59:48Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Aaron Griffin <aaron@archlinux.org>
pkgname=libarchive
pkgver=2.6.1
pkgrel=1
pkgdesc="library that can create and read several streaming archive formats"
arch=(i686 x86_64)
url="http://people.freebsd.org/~kientzle/libarchive/"
license=('BSD')
groups=('base')
depends=('zlib' 'bzip2' 'acl')
source=(http://libarchive.googlecode.com/files/libarchive-$pkgver.tar.gz)

# 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)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --without-lzmadec

  make || return 1
  make DESTDIR=$startdir/pkg install

  # install license
  mkdir -p $startdir/pkg/usr/share/licenses/libarchive
  install -m644 COPYING $startdir/pkg/usr/share/licenses/libarchive/
}

md5sums=('9d9f83947ee9d5732289ed48d00e3743')
sha256sums=('4d0ad4e5c33aa9725c7d92a42ae605815781372db949cd9906945e6c0d85c179')