wok-current view gsmartcontrol/receipt @ rev 25312
updated smartmontools (7.2 -> 7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 17:27:26 2022 +0100 (2022-07-20) |
parents | e3f377fbc5f0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gsmartcontrol"
4 VERSION="0.8.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="Hard disk drive health inspection tool (GUI for smartctl)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://gsmartcontrol.sourceforge.io/home/"
11 WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"
13 DEPENDS="pcre glib gtk+ cairomm gtkmm smartmontools"
14 BUILD_DEPENDS="pcre-dev glib-dev gtk+-dev cairomm-dev gtkmm-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/ashaduri/gsmartcontrol/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 sed -i '/ifndef _WIN32/{NNNNNNNNNd}' src/hz/sync_policy_glib.h
28 sed -i 's/lock(hz_glib/lock(g/' src/hz/sync_policy_glib.h
30 ./configure --prefix=/usr $CONFIGURE_ARGS &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $install/usr/bin/gsmartcontrol $fs/usr/bin
39 }