wok annotate libconfuse/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents 798acb92d4d5
children
rev   line source
mallory@2718 1 # SliTaz package receipt.
mallory@2718 2
mallory@2718 3 PACKAGE="libconfuse"
Hans-G?nter@24726 4 VERSION="3.3"
mallory@2718 5 CATEGORY="misc"
mallory@2718 6 SHORT_DESC="Configuration file parser library."
mallory@2718 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15472 8 LICENSE="ISC"
Hans-G?nter@24726 9 WEB_SITE="https://github.com/libconfuse/libconfuse"
Hans-G?nter@21163 10
Hans-G?nter@21163 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21163 12 WGET_URL="https://github.com/martinh/$PACKAGE/archive/v$VERSION.tar.gz"
mallory@2718 13
pascal@15472 14 DEPENDS=""
Hans-G?nter@21164 15 BUILD_DEPENDS="automake libtool"
pascal@15472 16
pascal@25600 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25600 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
mallory@2718 24 # Rules to configure and make the package.
mallory@2718 25 compile_rules()
mallory@2718 26 {
Hans-G?nter@21163 27 ./autogen.sh &&
Hans-G?nter@21163 28 ./configure \
Hans-G?nter@21163 29 --prefix=/usr \
Hans-G?nter@21163 30 --infodir=/usr/share/info \
Hans-G?nter@21163 31 --mandir=/usr/share/man \
pascal@4296 32 $CONFIGURE_ARGS
Hans-G?nter@21163 33
pascal@4296 34 sed -i 's/ -Werror//' src/Makefile
Hans-G?nter@21163 35
Hans-G?nter@24726 36 make &&
Hans-G?nter@24726 37 make install DESTDIR=$DESTDIR
mallory@2718 38 }
mallory@2718 39
mallory@2718 40 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2718 41 genpkg_rules()
mallory@2718 42 {
Hans-G?nter@24726 43 get_dev_files
mallory@2718 44 }