mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# $Id: PKGBUILD 72377 2010-03-15 07:06:13Z dan $
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
# Maintainer: Aaron Griffin <aaron@archlinux.org>
|
|
pkgname=libarchive
|
|
pkgver=2.8.3
|
|
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' 'expat')
|
|
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)
|
|
|
|
# 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/
|
|
}
|
|
|
|
md5sums=('fe8d917e101d4b37580124030842a1d0')
|
|
sha256sums=('16095d15334b3c8dbb02db5af3d415f12c1c3bdd4eb43af7bbc36ab7572c0b7a')
|