# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: kitsunyan <`echo a2l0c3VueWFuQGFpcm1haWwuY2MK | base64 -d`>

pkgname=intel-undervolt
pkgver=1.7
pkgrel=3
pkgdesc='Intel CPU undervolting tool'
arch=('x86_64')
url='https://github.com/kitsunyan/intel-undervolt'
license=('GPL3')
depends=('glibc')
makedepends=('systemd')
backup=(etc/intel-undervolt.conf)
source=("https://github.com/kitsunyan/intel-undervolt/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
b2sums=('0daade381b492184616356f097de32d14c76d6ab3f7dd59240fb25f92ee1b9aebb16cbef8b6836e16e361a9560b000655470140c31b5822fed7bd90e0b9d9bf2')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --enable-systemd
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
