SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xalan-c"

# SliTaz package receipt.

PACKAGE="xalan-c"
VERSION="1.12.0"
CATEGORY="development"
SHORT_DESC="An XSLT processor for transforming XML documents into HTML, text, or other XML document types."
MAINTAINER="rcx@zoominternet.net"
LICENSE="Apache"
WEB_SITE="https://xalan.apache.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/apache/$PACKAGE/archive/refs/tags/Xalan-C_${VERSION//./_}.tar.gz"

DEPENDS="gcc-lib-base glibc-base icu libcrypto libcurl xerces-c"
BUILD_DEPENDS="cmake xerces-c-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/xalan_c-[0-9]/!d;/tar/!d;s|.*xalan_c-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
#    mv c/* . && rm -r c
#    sed -i 's|mutable MemoryManager|MemoryManager|' \
#        src/xalanc/*/*.hpp

    export XERCESCROOT=/usr
    export XALANCROOT=$src

    mkdir    _build &&
    cd    _build &&
    cmake    ..            \
        -D CMAKE_INSTALL_PREFIX=/usr &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6025 packages and 203653 files in current database (Fri May 31 00:00:08 2024)