You are not logged in.
Hello.
DDCcontrol is a program running on Linux, used to control monitor parameters, like brightness and contrast, by software, i.e. without using the OSD (On Screen Display) and the buttons in front of the monitor.
http://ddccontrol.sourceforge.net/
The ddccontrol version in Aur is quite old (2006)..so i tried to wrote an updated svn package:
ddccontrol-svn
# Contributor:Xemertix <arch88(at)katamail(dot)com>
pkgname=ddccontrol-svn
pkgver=806
pkgrel=1
pkgdesc="Control your monitor by software using the DDC/CI protocol."
url="http://ddccontrol.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('ddccontrol-db-svn')
makedepends=('subversion' 'wget')
provides=('ddccontrol')
conflicts=('ddccontrol')
source=()
md5sums=()
_svntrunk=https://ddccontrol.svn.sourceforge.net/svnroot/ddccontrol/trunk/ddccontrol
_svnmod=ddccontrol
build() {
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cd $srcdir/ddccontrol
./autogen.sh
aclocal -I m4
autoconf
wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess'
wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub'
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
# Fix permissions
find "$pkgdir"/usr/ -type f -exec chmod 664 {} \;
find "$pkgdir"/usr/ -type d -exec chmod 755 {} \;
find "$pkgdir"/usr/bin -type f -exec chmod 755 {} \;
}ddccontrol-db-svn
# Contributor:Xemertix <arch88(at)katamail(dot)com>
pkgname=ddccontrol-db-svn
pkgver=797
pkgrel=1
pkgdesc="Monitor database for DDCControl"
arch=('i686' 'x86_64')
url="http://ddccontrol.sourceforge.net/"
license=('GPL')
depends=()
makedepends=('subversion' 'wget')
provides=('ddccontrol-db')
conflicts=('ddccontrol-db')
source=()
md5sums=()
_svntrunk=https://ddccontrol.svn.sourceforge.net/svnroot/ddccontrol/trunk/ddccontrol-db/
_svnmod=ddccontrol-db
build() {
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cd $srcdir/ddccontrol-db
./autogen.sh
aclocal -I m4
autoconf
wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess'
wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub'
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
}Note:If you dont use gnome you can add --disable-gnome-applet in the ./configure line.
Note2:After running autogen.sh the program outptus the following text and you have to hit 'enter':
Please run 'aclocal -I m4' to regenerate the aclocal.m4 file.
You need aclocal from GNU automake 1.9 (or newer) to do this.
Then run 'autoconf' to regenerate the configure file.
You will also need config.guess and config.sub, which you can get from the CVS
of the 'config' project at http://savannah.gnu.org/. The commands to fetch them
are
$ wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess'
$ wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub'
You might also want to copy the convenience header file gettext.h
from the /usr/share/gettext directory into your package.
It is a wrapper around <libintl.h> that implements the configure --disable-nls
option.
Press Return to acknowledge the previous three paragraphs.Last edited by Xemertix (2009-06-14 07:07:32)
Offline