SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gtkhash"

# SliTaz package receipt.

PACKAGE="gtkhash"
VERSION="1.2"
CATEGORY="system-tools"
SHORT_DESC="GTK+ utility for computing message digests or checksums."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPLv2+"
WEB_SITE="https://github.com/tristanheaven/gtkhash"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"

DEPENDS="gtk+3 libgcrypt"
BUILD_DEPENDS="autoconf automake gtk+3-dev libgcrypt-dev libtool"

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_icons

    mkdir -p $fs/usr/share/locale

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/applications    $fs/usr/share

    # Set list of wanted locales in LOCALE_PACK
    . $WOK/slitaz-i18n/stuff/locale-pack.conf

    # Copy message files in wanted languages, if available
    for locale in $LOCALE_PACK
      do
        [ -d $install/usr/share/locale/$locale ] || continue
        cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
      done
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)