2 # Copyright (C) 2019 Lucian Cristain <lucian.cristian@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
16 PKG_SOURCE_URL
:=https
://github.com
/fenrus75
/powertop
17 PKG_MIRROR_HASH
:=9b49054a7e9684781287eb25c50003f68669e7dcad1c234573bd6a5e26474da7
19 PKG_MAINTAINER
:=Lucian Cristain
<lucian.cristian@gmail.com
>
20 PKG_LICENSE
:=GPL-2.0
-only
21 PKG_LICENSE_FILES
:=COPYING
23 PKG_FIXUP
:=autoreconf gettext-version
26 PKG_BUILD_DEPENDS
:=gettext-full
/host
28 include $(INCLUDE_DIR
)/package.mk
29 include $(INCLUDE_DIR
)/nls.mk
31 define Package
/powertop
34 DEPENDS
:=$(INTL_DEPENDS
) +libstdcpp
+libpci
+libncursesw
+libnl-genl
35 TITLE
:=Power consumption monitor
36 URL
:=https
://01.org
/powertop
39 define Package
/powertop
/description
40 PowerTOP is a Linux tool to diagnose issues with power consumption
45 $(if
$(INTL_FULL
),-lintl
)
47 define Package
/powertop
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/powertop \
53 $(eval
$(call BuildPackage
,powertop
))