wok-current view thermald/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 7397cb36a387 |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="thermald"
4 VERSION="1.9.1"
5 CATEGORY="system-tools"
6 LICENSE="GPL2"
7 SHORT_DESC="Linux thermal daemon (thermald) monitors and controls temperature."
8 MAINTAINER="yuripourre@gmail.com"
9 WEB_SITE="https://01.org/linux-thermal-daemon"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/intel/thermal_daemon/archive/v$VERSION.tar.gz"
14 DEPENDS="dbus dbus-glib"
15 BUILD_DEPENDS="automake dbus-dev dbus-glib-dev libxml2"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/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 # 1.0
27 # sed -i '322s|%lu|%u|' src/thd_zone.cpp
29 ./autogen.sh &&
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }