summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDX372020-11-18 11:28:58 +0700
committerDX372020-11-18 11:28:58 +0700
commit964ff699437041e02c22bab652a5e366e27cd968 (patch)
tree311b4bddcd0a7b441600146f13850569ea2ef290
parenteb6c417ad057aced381b5b0d0c24d8cfeab0f3a1 (diff)
downloadaur-htop-temperature-rpi.tar.gz
package is deprecated now
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD9
-rw-r--r--htop.install20
3 files changed, 30 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba1061a4e892..ec37b8eb5956 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = htop-temperature-rpi
pkgdesc = Interactive process viewer with added support for CPU temperature. Version for gathering Raspberry Pi CPU temperature from thermal_zone0
pkgver = 3.0.2
- pkgrel = 1
+ pkgrel = 2
url = https://htop.dev/
+ install = htop.install
arch = i686
arch = x86_64
arch = aarch64
@@ -20,8 +21,10 @@ pkgbase = htop-temperature-rpi
options = !emptydirs
source = https://github.com/htop-dev/htop/archive/3.0.2/htop-3.0.2.tar.gz
source = htop-temperature-rpi.patch
+ source = htop.install
sha256sums = b4744a3bea279f2a3725ed8e5e35ffd9cb10d66673bf07c8fe21feb3c4661305
sha256sums = 73f6945be919330a4819b213611fe20737ea541fcd86d16167338bd483874e24
+ sha256sums = a79df5e2d7c4f61258baf223ab327c4f07762227f916fe0e06e4958d7b219f47
pkgname = htop-temperature-rpi
diff --git a/PKGBUILD b/PKGBUILD
index f408d0cb3625..4c4e9d239721 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=htop
pkgname=htop-temperature-rpi
pkgver=3.0.2
-pkgrel=1
+pkgrel=2
pkgdesc='Interactive process viewer with added support for CPU temperature. Version for gathering Raspberry Pi CPU temperature from thermal_zone0'
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
url='https://htop.dev/'
@@ -13,11 +13,14 @@ optdepends=('lsof: show files opened by a process'
'strace: attach to a running process')
provides=('htop')
conflicts=('htop')
+install='htop.install'
options=('!emptydirs')
source=("https://github.com/htop-dev/htop/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
- 'htop-temperature-rpi.patch')
+ 'htop-temperature-rpi.patch'
+ 'htop.install')
sha256sums=('b4744a3bea279f2a3725ed8e5e35ffd9cb10d66673bf07c8fe21feb3c4661305'
- '73f6945be919330a4819b213611fe20737ea541fcd86d16167338bd483874e24')
+ '73f6945be919330a4819b213611fe20737ea541fcd86d16167338bd483874e24'
+ 'a79df5e2d7c4f61258baf223ab327c4f07762227f916fe0e06e4958d7b219f47')
prepare() {
cd "$_pkgname-$pkgver"
diff --git a/htop.install b/htop.install
new file mode 100644
index 000000000000..12b9b77db635
--- /dev/null
+++ b/htop.install
@@ -0,0 +1,20 @@
+all_off="$(tput sgr0)"
+bold="${all_off}$(tput bold)"
+blue="${bold}$(tput setaf 4)"
+yellow="${bold}$(tput setaf 3)"
+
+note() {
+ printf "${blue}::${yellow} WARNING:${bold} $1${all_off}\n"
+}
+
+post_install() {
+ note "htop-temperature-rpi is now deprecated. Consider installing htop,
+ which now contains another official temperature sensors support
+ implementation, directly based on libsensors."
+ note " Use: pacman -S htop"
+ note "See details: https://github.com/htop-dev/htop/pull/111"
+}
+
+post_upgrade() {
+ post_install
+}