summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df9972bd13d06fc89dc0d14a05d4e647a3291ad0 (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
# Maintainer: Orestis Floros <orestisflo@gmail.com>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Pagnite <tymoteuszdolega at gmail dot com>
# Contributor: Bjorn Neergaard (neersighted) <bjorn@neersighted.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Deon Spengler <deon@spengler.co.za>
_name=ddcutil
pkgname="$_name-dev-git"
pkgver=2.1.3.r0.g3e265eea
pkgrel=1
_branch='2.1.4-dev'
pkgdesc="Query and change Linux monitor settings using DDC/CI and USB."
url="https://www.ddcutil.com"
arch=('x86_64')
license=('GPL2')
depends=('glib2' 'i2c-tools' 'libusb' 'libdrm' 'libxrandr')
makedepends=('git' 'systemd')
provides=("$_name" 'libddcutil.so=4')
conflicts=("$_name")
source=("git+https://github.com/rockowitz/ddcutil.git#branch=$_branch")
sha256sums=('SKIP')

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

prepare() {
  cd "$srcdir/$_name"
  NOCONFIGURE=1 ./autogen.sh
}

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

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