mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 03:27:14 +08:00
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=libarchive
|
|
pkgver=2.8.4
|
|
pkgrel=2
|
|
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>=5.0.0' '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)
|
|
|
|
# NOTE: undash it to create a tar.gz after xz pkg build. Build it again after installing libarchive
|
|
|
|
#PKGEXT='.pkg.tar.gz'
|
|
|
|
# NOTE: rm symbolic link after install: sudo rm -v /usr/lib/liblzma.so.0
|
|
|
|
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/
|
|
}
|