# Maintainer: 3ED_0 # Contributor: kfgz # Contributor: Hubert CzobodziƄski # Contributor: Nathan Owe pkgbase=ddccontrol pkgname=(ddccontrol gddccontrol) pkgver=0.6.1 pkgrel=1 pkgdesc="Control your monitor by software using the DDC/CI protocol" arch=('i686' 'x86_64') url="https://github.com/ddccontrol/ddccontrol" license=('GPL') depends=('pciutils' 'ddccontrol-db-git' 'perl-xml-parser' 'libxml2' 'icu' 'glib2') makedepends=('gtk2' 'autoconf' 'automake' 'intltool' 'python') source=("$pkgbase-$pkgver.tar.gz::https://github.com/ddccontrol/ddccontrol/archive/${pkgver}.tar.gz") options=('!libtool') sha512sums=('abc8940dcd651c25e1030bd4f5ae59774cfa08b22352a653140ec924cbcaa93855473385575636ec0cd51ea5f1871e2331ade592846eafddb7eae99f55ff1164') prepare() { cd "${srcdir}"/${pkgbase}-${pkgver} test -f configure || ./autogen.sh } build() { cd "${srcdir}"/${pkgbase}-${pkgver} ./configure \ --prefix=/usr \ --disable-gnome-applet make } package_ddccontrol() { install=ddccontrol.install cd "${srcdir}"/${pkgbase}-${pkgver} for i in src/lib src/ddcpci src/daemon src/ddccontrol po man; do make DESTDIR="${pkgdir}" install -C $i done # fix bad path install -Dm644 \ "$pkgdir/usr/etc/dbus-1/system.d/ddccontrol.DDCControl.conf" \ "$pkgdir/usr/share/dbus-1/system.d/ddccontrol.DDCControl.conf" rm -rf "$pkgdir/usr/etc/" # cleanups rm "$pkgdir/usr/share/man/man1/gddccontrol.1" } package_gddccontrol() { depends=('gtk2' 'ddccontrol') pkgdesc="Control your monitor by software using the DDC/CI protocol (GUI)" conflicts=("ddccontrol-git") cd "${srcdir}"/${pkgbase}-${pkgver} for i in src/gddccontrol man; do make DESTDIR="${pkgdir}" install -C $i done # cleanups rm "$pkgdir/usr/share/man/man1/ddccontrol.1" }