SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "enchant"

# SliTaz package receipt.

PACKAGE="enchant"
VERSION="2.3.2"
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://abiword.github.io/enchant/"
WGET_URL="https://github.com/AbiWord/enchant/releases/download/v$VERSION/$TARBALL"
TAGS="spell check"
HOST_ARCH="i486 arm x86_64"

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

current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/released/!d;s|.*Enchant ||;s| released.*||;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-2 $fs/usr/lib
    rm $fs/usr/lib/enchant-2/*.*a
    cp -a $install/usr/share/enchant $fs/usr/share
}

6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)