blob: a5327e96ed564bf06740bd3a5aad1c9e6af8498e (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: 3ED_0 <krzysztof1987 /at/ gmail.com>
# Contributor: kfgz <kfgz at interia pl>
# Contributor: Hubert CzobodziĆski <hcz at onet dot eu>
# Contributor: Nathan Owe <ndowens dot aur at gmail dot com>
pkgbase=ddccontrol
pkgname=(ddccontrol gddccontrol)
pkgver=1.0.3
pkgrel=1
pkgdesc="DDCcontrol is a software used to control monitor parameters, like brightness, contrast, RGB color levels and others"
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=('5e49217c8560245d53d5a2dc71cda5683698e798bd1f75ca69e445b68b33d2fb826ff05dced1c0a40f2baf8fd26396c78d1c1bf6f95f30287da6d5b149bb98e2')
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"
}
|