wok-current annotate pugixml/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents b3bc4f725c0b
children ef0fdee3b091
rev   line source
pascal@18161 1 # SliTaz package receipt.
pascal@18161 2
pascal@18161 3 PACKAGE="pugixml"
Hans-G?nter@23453 4 VERSION="1.10"
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@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@18161 23 # Rules to configure and make the package.
pascal@18161 24 compile_rules()
pascal@18161 25 {
Hans-G?nter@23453 26 mkdir build &&
Hans-G?nter@23453 27 cd build &&
Hans-G?nter@23453 28 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@23453 29 make &&
pascal@18161 30 make DESTDIR=$DESTDIR install
pascal@18161 31 }
pascal@18161 32
pascal@18161 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18161 34 genpkg_rules()
pascal@18161 35 {
Hans-G?nter@23453 36 cp -a $install/* $fs/
pascal@18161 37 }