wok annotate libarchive/receipt @ rev 24981

Up pce (20220220-991c55d9)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 08 10:57:53 2022 +0000 (2022-05-08)
parents 535c806240cc
children a190bcfebf1e
rev   line source
erjo@3653 1 # SliTaz package receipt.
erjo@3653 2
erjo@3653 3 PACKAGE="libarchive"
Hans-G?nter@24718 4 VERSION="3.6.0"
pankso@4805 5 CATEGORY="system-tools"
erkan@20342 6 SHORT_DESC="C library and command line tool for reading archive."
erjo@3653 7 MAINTAINER="erjo@slitaz.org"
pascal@15472 8 LICENSE="BSD"
Hans-G?nter@21112 9 WEB_SITE="https://www.libarchive.org/"
Hans-G?nter@21112 10
erjo@3653 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17251 12 WGET_URL="${WEB_SITE}downloads/$TARBALL"
erjo@3653 13
Hans-G?nter@21112 14 DEPENDS="acl bzlib libcrypto liblzma libxml2 lz4-lib zlib"
Hans-G?nter@24718 15 BUILD_DEPENDS="acl-dev attr-dev libcrypto-dev libxml2-dev lz4-dev
Hans-G?nter@21112 16 openssl-dev zlib-dev"
pascal@15472 17
pascal@24465 18 # What is the latest version available today?
pascal@24465 19 current_version()
pascal@24465 20 {
pascal@24465 21 wget -O - https://github.com/libarchive/libarchive/releases 2>/dev/null | \
pascal@24465 22 sed '/libarchive-[0-9]/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24465 23 }
pascal@24465 24
erjo@3653 25 # Rules to configure and make the package.
erjo@3653 26 compile_rules()
erjo@3653 27 {
Hans-G?nter@21112 28 ./configure \
Hans-G?nter@21112 29 --prefix=/usr \
Hans-G?nter@21112 30 --infodir=/usr/share/info \
Hans-G?nter@21112 31 --mandir=/usr/share/man \
erjo@3653 32 $CONFIGURE_ARGS &&
Hans-G?nter@23003 33 make &&
Hans-G?nter@24718 34 make install DESTDIR=$DESTDIR
erjo@3653 35 }
erjo@3653 36
erjo@3653 37 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@3653 38 genpkg_rules()
erjo@3653 39 {
Hans-G?nter@24718 40 cook_copy_folders bin
Hans-G?nter@24718 41 cook_copy_files *.so*
erjo@3653 42 }