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