summaryrefslogtreecommitdiff
path: root/libre/psensor/PKGBUILD
blob: 8294c84f1863a0b862c6659480479ceb3cadf30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer (Arch): Robin Broda <robin@broda.me>
# Contributor (Arch): X0rg
# Contributor (Arch): marlock <marlock87@hotmail.com>
# Contributor (Arch): Diogo Leal <estranho@diogoleal.com>
# Maintainer: Freemor <freemor@freemor.ca>

pkgname=psensor
pkgver=1.2.0
pkgrel=5.parabola1
pkgdesc='A graphical hardware temperature monitor for Linux without nonfree libxnvctrl'
arch=('x86_64' 'i686')
url='https://wpitchoune.net/psensor'
license=('GPL2')
depends=('lm_sensors' 'dconf' 'gtk3' 'udisks2' 'curl' 'libgtop' 'libnotify'
         'json-c' 'libmicrohttpd')
makedepends=('help2man')
source=("https://wpitchoune.net/${pkgname}/files/${pkgname}-${pkgver}.tar.gz"
        'is_error.patch')
sha512sums=('274928190a53f3603f7db4ea81057497bfa01b9d0f8b4eb2f5f5094fd944ee384aff8f9c21b9c85ea001cbe877e7dc020963c0570f000ef42b302cb54b038e4d'
            'fa1f0a8cdbd75fba2ad980a5beb1807e533ef12154db1f0cc97c9130080584cb0251e29a56068b0400f152e540f326a7b16749bf11b1e844d1d519d7bb0e71ed')

prepare() {
  cd "${pkgname}-${pkgver}"

  patch -Np1 -i "${srcdir}/is_error.patch"
}

build() {
  cd "${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}/" install
}