SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gsmartcontrol"

# SliTaz package receipt.

PACKAGE="gsmartcontrol"
VERSION="0.8.6"
CATEGORY="system-tools"
SHORT_DESC="Hard disk drive health inspection tool (GUI for smartctl)."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2 GPL3"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://gsmartcontrol.sourceforge.io/home/"
WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"

DEPENDS="pcre glib gtk+ cairomm gtkmm smartmontools"
BUILD_DEPENDS="pcre-dev glib-dev gtk+-dev cairomm-dev gtkmm-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i '/ifndef _WIN32/{NNNNNNNNNd}' src/hz/sync_policy_glib.h
    sed -i 's/lock(hz_glib/lock(g/' src/hz/sync_policy_glib.h
    
    ./configure --prefix=/usr $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $install/usr/bin/gsmartcontrol $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)