wok-current annotate libarchive/receipt @ rev 5545

libarchive: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 13 15:11:57 2010 +0200 (2010-05-13)
parents a43784c8500b
children c8d661eae04a
rev   line source
erjo@3653 1 # SliTaz package receipt.
erjo@3653 2
erjo@3653 3 PACKAGE="libarchive"
pascal@5544 4 VERSION="2.8.3"
pankso@4805 5 CATEGORY="system-tools"
erjo@3653 6 SHORT_DESC="C librairy and command line tool for reading archive."
erjo@3653 7 MAINTAINER="erjo@slitaz.org"
pascal@5003 8 DEPENDS="acl libcrypto liblzma bzlib zlib"
erjo@3653 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@3653 10 WEB_SITE="http://code.google.com/p/libarchive/"
erjo@3653 11 WGET_URL="http://libarchive.googlecode.com/files/$TARBALL"
erjo@3653 12
erjo@3653 13 # Rules to configure and make the package.
erjo@3653 14 compile_rules()
erjo@3653 15 {
erjo@3653 16 cd $src
pascal@5545 17 sed -i 's|acl/libacl.h|libacl.h|' tar/bsdtar_platform.h
erjo@3653 18 ./configure \
erjo@3653 19 --prefix=/usr \
erjo@3653 20 --infodir=/usr/share/info \
erjo@3653 21 --mandir=/usr/share/man \
erjo@3653 22 $CONFIGURE_ARGS &&
erjo@3653 23 make && make DESTDIR=$PWD/_pkg install
erjo@3653 24 }
erjo@3653 25
erjo@3653 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@3653 27 genpkg_rules()
erjo@3653 28 {
erjo@3653 29 mkdir -p $fs/usr/lib
erjo@3653 30 cp -a $_pkg/usr/bin $fs/usr
erjo@3653 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
erjo@3653 32 }
erjo@3653 33