wok annotate pugixml/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (16 months ago)
parents ef0fdee3b091
children
rev   line source
pascal@18161 1 # SliTaz package receipt.
pascal@18161 2
pascal@18161 3 PACKAGE="pugixml"
Hans-G?nter@25157 4 VERSION="1.12.1"
pascal@18161 5 CATEGORY="misc"
pascal@18161 6 SHORT_DESC="Light-weight, simple and fast XML parser for C++ with XPath support."
pascal@18161 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18161 8 LICENSE="MIT"
Hans-G?nter@21726 9 WEB_SITE="https://pugixml.org/"
Hans-G?nter@21726 10
pascal@18161 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21726 12 WGET_URL="https://github.com/zeux/$PACKAGE/releases/download/v$VERSION/$TARBALL"
pascal@18161 13
pascal@18161 14 SUGGESTED="cmake"
pascal@18161 15 BUILD_DEPENDS="cmake"
pascal@18161 16
pascal@25601 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25601 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
pascal@18161 24 # Rules to configure and make the package.
pascal@18161 25 compile_rules()
pascal@18161 26 {
Hans-G?nter@25157 27 mkdir _build &&
Hans-G?nter@25157 28 cd _build &&
Hans-G?nter@25157 29 cmake .. \
Hans-G?nter@25157 30 -D CMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@23453 31 make &&
Hans-G?nter@25157 32 make install DESTDIR=$DESTDIR
pascal@18161 33 }
pascal@18161 34
pascal@18161 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18161 36 genpkg_rules()
pascal@18161 37 {
Hans-G?nter@23453 38 cp -a $install/* $fs/
pascal@18161 39 }