2024-03-27 23:02:35 +01:00

31 lines
955 B
Bash

# Template file for 'ddcutil'
pkgname=ddcutil
version=2.1.4
revision=1
build_style=gnu-configure
configure_args="--libdir=/usr/lib"
hostmakedepends="automake libtool pkg-config"
makedepends="i2c-tools-devel libdrm-devel libgudev-devel libkmod-devel
libusb-devel libXrandr-devel jansson-devel"
depends="i2c-tools"
short_desc="Query and change monitor settings using DDC/CI and USB"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later"
homepage="https://www.ddcutil.com"
changelog="https://www.ddcutil.com/release_notes/"
distfiles="https://github.com/rockowitz/ddcutil/archive/v${version}.tar.gz"
checksum=cd8325d399399edba3df4ec58a4051c7c54fcf4fbc8f62937c6f19adb303f4ba
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel musl-legacy-compat"
LDFLAGS="-lexecinfo"
post_extract() {
vsed -i -e "/AM_CFLAGS += -Wpedantic/d" src/app_sysenv/Makefile.am
}
;;
esac
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}