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

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents cb67b4f8be05
children
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="https://xalan.apache.org/"
12 TARBALL="${SOURCE}_${VERSION//./_}-bin-2jars.tar.gz"
13 WGET_URL="https://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 }