blob: 0c87ef0bc09a1a156b74a29130b3f9dac4464977 (
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=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"
}
|