# Contributor: Bernhard Walle <bernhard.walle@gmx.de>
pkgname=lcdproc
pkgver=0.5.3
pkgrel=3
pkgdesc="LCDproc is a utility to drive one or more LCD (and LCD-like) devices attached to a host."
url="http://lcdproc.omnipotent.net/"
license="GPL"
depends=(libusb serdisplib libftdi autoconf automake lirc libnxml libmrss pkgconfig xosd)
backup=(etc/LCDd.conf)
arch=(i686 x86_64)
install=lcdproc.install
source=(http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
        lcdproc-add-serdisplib
        )

build() {
  cd $startdir/src/$pkgname-$pkgver
#  patch -p1 < ../lcdproc-add-serdisplib
  autoreconf
  ./configure --prefix=/usr --sysconfdir=/etc --enable-libusb --enable-lcdproc-menus --enable-stat-smbfs --enable-drivers=all
  make
  make DESTDIR=$startdir/pkg install
  sed -e "s/server\/drivers\//\/usr\/lib\/lcdproc\//g" LCDd.conf > $pkgdir/etc/LCDd.conf
}
md5sums=('fe9a7c9d8f2c5e76250ce2ea8f644921'
         '274322642740ad323c43ec5d324519d4')