summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 978030d9860749d44ed755f9934114ae61a0fae0 (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
40
41
42
43
44
45
# Maintainer: motte <ettom22 at hotmail dot com>
# Contributor: Bjorn Neergaard (neersighted) <bjorn@neersighted.com>

_pkgname=ddcutil
pkgname=ddcutil-git
pkgver=v0.9.9.r0.gdf01384d
pkgrel=1
pkgdesc='Query and change Linux monitor settings using DDC/CI and USB (development version).'
url='http://ddcutil.com/'
license=('GPL2')
source=('git+https://github.com/rockowitz/ddcutil.git#branch=0.9.9-dev')
sha256sums=('SKIP')
arch=('i686' 'x86_64')
provides=('ddcutil')

depends=(
  'libdrm'
  'libusb'
  'glib2'
  'libdrm'
  'libgudev'
  'libxrandr')

makedepends=(
  'git'
)

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_pkgname}"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}" install
}

# vim: ft=sh ts=2 sw=2 et