summaryrefslogtreecommitdiffstats
path: root/abs/core/libarchive/PKGBUILD
blob: 1c29cd2fa3d5c7ac8bdb67875f8ded7cd4524f42 (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
# $Id: PKGBUILD 50484 2009-08-27 22:33:42Z thomas $
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Aaron Griffin <aaron@archlinux.org>
pkgname=libarchive
pkgver=2.7.1
pkgrel=1
pkgdesc="library that can create and read several streaming archive formats"
arch=(i686 x86_64)
url="http://libarchive.googlecode.com/"
license=('BSD')
groups=('base')
depends=('zlib' 'bzip2' 'xz-utils' 'acl' 'openssl')
source=(http://libarchive.googlecode.com/files/libarchive-$pkgver.tar.gz)
sha256sums=('a7e066ef857d3db0211e2d916ca14aafc48a4776c4fa108fd67092ce862a7ba8')

# 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

  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/
}