wok view xerces-c/receipt @ rev 24545
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 24 19:32:16 2022 +0000 (2022-02-24) |
parents | 2117e19cae0b |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xerces-c"
4 VERSION="3.2.3"
5 CATEGORY="development"
6 SHORT_DESC="A validating XML parser written in a portable subset of C++."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="Apache"
9 WEB_SITE="https://xerces.apache.org/xerces-c/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://apache.org/dist/xerces/c/${VERSION%%.*}/sources/$TARBALL"
14 DEPENDS="gcc-lib-base glibc-base icu libcrypto libcurl"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/available/!d;s|.*sion ||;s| is .*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS &&
27 make $MAKEFLAGS &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr
38 }