SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "expat"

# SliTaz package receipt.

PACKAGE="expat"
VERSION="2.6.2"
CATEGORY="x-window"
SHORT_DESC="XML parsing C library."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://libexpat.github.io/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/libexpat/libexpat/releases/download/R_${VERSION//./_}/$TARBALL"

HOST_ARCH="i486 arm x86_64"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/Changes">/!d;s|.*Expat ||;s|</a.*||;s|</*strong>||g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*

    # expat so.0 symbolic link.
    cd $fs/usr/lib
    ln -s libexpat.so.1.*.* libexpat.so.0
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)