# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Ray Rashif <schivmeister@gmail.com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=xsensors
pkgver=0.80
pkgrel=5
pkgdesc="X11 interface to lm_sensors - Mystro256 fork"
arch=('x86_64')
url="https://github.com/Mystro256/xsensors"
license=('GPL')
depends=('gtk3' 'lm_sensors')
source=(https://github.com/Mystro256/xsensors/archive/${pkgver}.tar.gz)
sha256sums=('4f583b72c99be13eb06249d5b28bda2f8f204e07e67049bc00c6c60cfd0c352c')

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

  ./configure --prefix=/usr
  make
}

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

  make DESTDIR="${pkgdir}" install
  mv "$pkgdir"/usr/share/{appdata,metainfo}
}
