40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Maintainer: 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>
|
|
pkgname=ddcutil-git
|
|
pkgver=1.4.0.r0.g670b6f36
|
|
pkgrel=1
|
|
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=("${pkgname%-git}=${pkgver//.r*/}" 'libddcutil.so=4')
|
|
conflicts=("${pkgname%-git}")
|
|
source=('git+https://github.com/rockowitz/ddcutil.git')
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/${pkgname%-git}"
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
prepare() {
|
|
cd "$srcdir/${pkgname%-git}"
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${pkgname%-git}"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${pkgname%-git}"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|