wok-6.x view xalan-c/receipt @ rev 25493
Add libgnt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 19 17:37:48 2022 +0000 (21 months ago) |
parents | cb67b4f8be05 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xalan-c"
4 VERSION="1.12.0"
5 CATEGORY="development"
6 SHORT_DESC="An XSLT processor for transforming XML documents into HTML, text, or other XML document types."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="Apache"
9 WEB_SITE="https://xalan.apache.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/apache/$PACKAGE/archive/refs/tags/Xalan-C_${VERSION//./_}.tar.gz"
14 DEPENDS="gcc-lib-base glibc-base icu libcrypto libcurl xerces-c"
15 BUILD_DEPENDS="cmake xerces-c-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/xalan_c-[0-9]/!d;/tar/!d;s|.*xalan_c-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # mv c/* . && rm -r c
28 # sed -i 's|mutable MemoryManager|MemoryManager|' \
29 # src/xalanc/*/*.hpp
31 export XERCESCROOT=/usr
32 export XALANCROOT=$src
34 mkdir _build &&
35 cd _build &&
36 cmake .. \
37 -D CMAKE_INSTALL_PREFIX=/usr &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cook_copy_folders bin
46 cook_copy_files *.so*
47 }