#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=ddcutil
pkgver=1.4.0
pkgrel=01
pkgdesc='Query and change Linux monitor settings using DDC/CI and USB. w/o systemd'
url='http://ddcutil.com/'
depends=('glib2' 'i2c-tools' 'libusb' 'libdrm' 'libxrandr')
#makedepends=('systemd')
source=(https://github.com/rockowitz/ddcutil/archive/v$pkgver/$pkgname-$pkgver.tar.gz)

prepare() {
  cd $pkgname-$pkgver
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

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

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=('GPL2')

sha512sums=('c0486c1bf8469bf55611c4e6ca31f8a8960ae9a93d8cca55979f03d5f95918b6e77c30fdcb2a291dd28c9d3cf0e8679f5bbb614b4f3c57fc3655294163c7aa00')

sha256sums=(93c23adbd0392c2de2f4beb485fb8deaf1b5e54a551cef7c32d89dbe0f8986c4) # ddcutil-1.4.0.tar.gz

##  6a2e6abde1df84de2ca2c0d0e67be8bbe4985cf0904648dd0f03536cd5257c02  ddcutil-1.4.0-01-x86_64.pkg.tar.lz

