summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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 26c36f3a4b1..0d99db92d84 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = htop-temperature
pkgdesc = Interactive process viewer with added support for CPU temperature
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
options = !emptydirs
source = https://github.com/htop-dev/htop/archive/3.0.2/htop-3.0.2.tar.gz
source = htop-temperature.patch
+ source = htop.install
sha256sums = b4744a3bea279f2a3725ed8e5e35ffd9cb10d66673bf07c8fe21feb3c4661305
sha256sums = 1d6e3e4fde8dc3d8f5e093b64c0eb8544f80cc2e0291d6558bdba158359d9f06
+ sha256sums = 2596ba7a4f8cd920d0cb93d7ac53f3ed052b322f6ea51e970833332319525a23
pkgname = htop-temperature
diff --git a/PKGBUILD b/PKGBUILD
index 3852764572c..1272a35e87a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
_pkgname=htop
pkgname=htop-temperature
pkgver=3.0.2
-pkgrel=1
+pkgrel=2
pkgdesc='Interactive process viewer with added support for CPU temperature'
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
url='https://htop.dev/'
@@ -14,11 +14,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.patch')
+ 'htop-temperature.patch'
+ 'htop.install')
sha256sums=('b4744a3bea279f2a3725ed8e5e35ffd9cb10d66673bf07c8fe21feb3c4661305'
- '1d6e3e4fde8dc3d8f5e093b64c0eb8544f80cc2e0291d6558bdba158359d9f06')
+ '1d6e3e4fde8dc3d8f5e093b64c0eb8544f80cc2e0291d6558bdba158359d9f06'
+ '2596ba7a4f8cd920d0cb93d7ac53f3ed052b322f6ea51e970833332319525a23')
prepare() {
cd "$_pkgname-$pkgver"
diff --git a/htop.install b/htop.install
new file mode 100644
index 00000000000..8a12acace1d
--- /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 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
+}