wok-current view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pugixml"
4 VERSION="1.10"
5 CATEGORY="misc"
6 SHORT_DESC="Light-weight, simple and fast XML parser for C++ with XPath support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pugixml.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/zeux/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 SUGGESTED="cmake"
15 BUILD_DEPENDS="cmake"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir build &&
27 cd build &&
28 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs/
37 }