wok-6.x annotate libconfig/receipt @ rev 24288

fail2ban: add log4j-jndi.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 13 18:29:05 2022 +0000 (2022-01-13)
parents 7a0735348d6c
children b6e30721444b
rev   line source
pascal@13040 1 # SliTaz package receipt.
pascal@13040 2
pascal@13040 3 PACKAGE="libconfig"
Hans-G?nter@21156 4 VERSION="1.7.2"
pascal@13040 5 CATEGORY="misc"
Hans-G?nter@21156 6 SHORT_DESC="C/C++ Configuration File Library."
pascal@13040 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15472 8 LICENSE="LGPL2.1"
Hans-G?nter@21156 9 WEB_SITE="https://www.hyperrealm.com/libconfig/"
Hans-G?nter@21156 10
pascal@13040 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21156 12 WGET_URL="https://github.com/hyperrealm/$PACKAGE/archive/v$VERSION.tar.gz"
pascal@15472 13
pascal@13040 14 DEPENDS=""
Hans-G?nter@21157 15 BUILD_DEPENDS="automake texinfo"
pascal@13040 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@13040 23 # Rules to configure and make the package.
pascal@13040 24 compile_rules()
pascal@13040 25 {
Hans-G?nter@21156 26 autoreconf
Hans-G?nter@21156 27 ./configure \
Hans-G?nter@21156 28 --prefix=/usr \
Hans-G?nter@21156 29 --infodir=/usr/share/info \
Hans-G?nter@21156 30 --mandir=/usr/share/man \
Hans-G?nter@21156 31 --disable-cxx \
Hans-G?nter@21156 32 $CONFIGURE_ARGS &&
Hans-G?nter@21156 33 make -j 1 &&
pascal@15475 34 make DESTDIR=$DESTDIR -j 1 install
pascal@13040 35 }
pascal@13040 36
pascal@13040 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13040 38 genpkg_rules()
pascal@13040 39 {
pascal@13040 40 mkdir -p $fs/usr/lib
pascal@15472 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@13040 42 }