SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "enchant"

# SliTaz package receipt.

PACKAGE="enchant"
VERSION="1.6.0"
CATEGORY="x-window"
SHORT_DESC="Enchant spell checking library."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2.1"
SUGGESTED="aspell"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/AbiWord/enchant"
WGET_URL="https://web.archive.org/web/20230331215737if_/http://www.abisource.com/downloads/enchant/$VERSION/$TARBALL"
TAGS="spell check"
HOST_ARCH="i486 arm"

DEPENDS="dbus dbus-glib glib gcc-lib-base"
BUILD_DEPENDS="pkg-config glib glib-dev aspell-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/AbiWord/enchant/releases/ 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/enchant $fs/usr/lib
    rm $fs/usr/lib/enchant/*.*a
    cp -a $install/usr/share/enchant $fs/usr/share
}

5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)