pkgname=ddcxinfo
pkgver=0.6.19
pkgrel=3
pkgdesc="DDC readout using the VESA BIOS extension"
url="http://www.t2-project.org/packages/ddcxinfo.html"
license="GPL"
depends=(x-server)
makedepends=()
conflicts=()
replaces=()
backup=()
arch=('i686')
install=
source=(http://www.kanotix.com/files/debian/pool/main/d/ddcxinfo-kanotix/$pkgname-kanotix_$pkgver.tar.gz
        lrmi.patch)


build() {
  cd $startdir/src/$pkgname-kanotix-$pkgver
  mkdir -p  $startdir/pkg/usr/sbin
  patch -p1 < $startdir/src/lrmi.patch
  make DESTDIR=$startdir/pkg install
  cp svgamodes $startdir/pkg/usr/sbin/
  chmod +s $startdir/pkg/usr/sbin/ddcprobe
}