wok view tinyxml/receipt @ rev 25621

Add sngrep
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 31 08:29:57 2023 +0000 (15 months ago)
parents 0c04fc34847a
children a3503ff52a2e
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 WGET_URL="$SF_MIRROR/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
19 sed '/tinyxml_/!d;s|.*tinyxml_||;s|.[zt].*||;s|_|.|g;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make &&
26 ${HOST_SYSTEM}-g++ -m32 -fPIC "$CXXFLAGS" -shared \
27 -o libtinyxml.so.0.$VERSION \
28 -Wl,-soname,libtinyxml.so.0 $(ls *.o | grep -v xmltest)
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/bin
35 cp -a ${src}/xmltest $fs/usr/bin
36 cp -a ${src}/*.so* $fs/usr/lib
37 cd $fs/usr/lib
38 ln -s libtinyxml.so.0.$VERSION libtinyxml.so.0
39 ln -s libtinyxml.so.0.$VERSION libtinyxml.so
40 }