wok annotate libarchive/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents c0da92783a87
children e0d3d0d02527
rev   line source
erjo@3653 1 # SliTaz package receipt.
erjo@3653 2
erjo@3653 3 PACKAGE="libarchive"
Hans-G?nter@23003 4 VERSION="3.4.2"
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@21112 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@23003 34 make DESTDIR=$DESTDIR install
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 {
erjo@3653 40 mkdir -p $fs/usr/lib
Hans-G?nter@21112 41
Hans-G?nter@21112 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21112 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@3653 44 }