wok view xalan-xerces-j/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents ab73a80ed2b7
children cb67b4f8be05
line source
1 # SliTaz package receipt.
3 PACKAGE="xalan-xerces-j"
4 SOURCE="xalan-j"
5 VERSION="2.7.2"
6 CATEGORY="development"
7 SHORT_DESC="A validating XML parser and an XSLT processor written in Java."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="Apache"
10 WEB_SITE="http://xalan.apache.org/"
12 TARBALL="${SOURCE}_${VERSION//./_}-bin-2jars.tar.gz"
13 WGET_URL="http://archive.apache.org/dist/xalan/xalan-j/binaries/$TARBALL"
15 SUGGESTED="java-jre"
16 BUILD_DEPENDS="tar"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed "/latest/d;/${SOURCE}_[0-9]/!d;/tar/!d;s|.*${SOURCE}_\\(.*\\).bin.*|\\1|;s|_|.|g" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 [ -d ${SOURCE}_${VERSION//./_} ] &&
29 mv ${SOURCE}_${VERSION//./_} $src
30 cd $src
32 mkdir -p $DESTDIR/usr/share/java &&
33 cp -f $src/*.jar $DESTDIR/usr/share/java
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs
40 cp -a $install/usr $fs
41 }