wok-current annotate libarchive/receipt @ rev 25586
Fix linux build with gcc > 6 again
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 29 12:23:26 2023 +0000 (19 months ago) |
parents | a190bcfebf1e |
children | 3ad63c8fc2f9 |
rev | line source |
---|---|
erjo@3653 | 1 # SliTaz package receipt. |
erjo@3653 | 2 |
erjo@3653 | 3 PACKAGE="libarchive" |
pascal@25435 | 4 VERSION="3.6.1" |
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" |
pascal@25362 | 9 WEB_SITE="https://github.com/libarchive/libarchive" |
Hans-G?nter@21112 | 10 |
pascal@25435 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@25435 | 12 WGET_URL="${WEB_SITE}/releases/download/v$VERSION/$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 } |