wok view tinyxml/receipt @ rev 25680

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