wok annotate tinyxml/receipt @ rev 25073

Up dropbear (2022.82)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 11 11:22:52 2022 +0000 (2022-06-11)
parents 922f061231c2
children 29df00e1e19d
rev   line source
pankso@16372 1 # SliTaz package receipt.
pankso@16372 2
pankso@16372 3 PACKAGE="tinyxml"
pascal@17869 4 VERSION="2.6.2"
pankso@16372 5 CATEGORY="system-tools"
pankso@16372 6 SHORT_DESC="TinyXML is a simple, small, C++ XML parser."
pankso@16372 7 MAINTAINER="pankso@slitaz.org"
pankso@16372 8 LICENSE="GPL2"
pascal@17869 9 TARBALL="${PACKAGE}_${VERSION//./_}.zip"
pascal@24304 10 WEB_SITE="http://www.grinninglizard.com/tinyxml/index.html"
pascal@17869 11 WGET_URL="$SF_MIRROR/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
pankso@16379 12 #HOST_ARCH="i486 arm"
pankso@16372 13
pascal@24313 14 # What is the latest version available today?
pascal@24313 15 current_version()
pascal@24313 16 {
pascal@24313 17 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
pascal@24313 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24313 19 sed '/tinyxml_/!d;s|.*tinyxml_||;s|.[zt].*||;s|_|.|g;q'
pascal@24313 20 }
pascal@24313 21
pankso@16372 22 # Rules to configure and make the package.
pankso@16372 23 compile_rules()
pankso@16372 24 {
pankso@16372 25 make &&
pankso@16372 26 ${HOST_SYSTEM}-g++ -m32 -fPIC "$CXXFLAGS" -shared \
pascal@17869 27 -o libtinyxml.so.0.$VERSION \
pankso@16372 28 -Wl,-soname,libtinyxml.so.0 $(ls *.o | grep -v xmltest)
pankso@16372 29 }
pankso@16372 30
pankso@16372 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16372 32 genpkg_rules()
pankso@16372 33 {
pankso@16372 34 mkdir -p $fs/usr/lib $fs/usr/bin
pankso@16372 35 cp -a ${src}/xmltest $fs/usr/bin
pankso@16372 36 cp -a ${src}/*.so* $fs/usr/lib
pankso@16372 37 cd $fs/usr/lib
pascal@17869 38 ln -s libtinyxml.so.0.$VERSION libtinyxml.so.0
pascal@17869 39 ln -s libtinyxml.so.0.$VERSION libtinyxml.so
pankso@16372 40 }
pankso@16372 41