# Contributor: Bernhard Walle <bernhard.walle@gmx.de>
pkgname=serdisplib
pkgver=1.97.8
pkgrel=1
pkgdesc="Library for Certain Serial and Parallel LC Displays"
url="http://serdisplib.sourceforge.net/"
license="GPL"
depends=(libusb gd)
backup=(etc/LCDd.conf)
arch=(i686 x86_64)
source=(http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('2aa91c43d01d2dfc9fbc1116e3063ae1')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc --enable-libusb
  make
  make DESTDIR=$startdir/pkg includedir=$startdir/pkg/usr/include \
        libdir=$startdir/pkg/usr/lib bindir=$startdir/pkg/usr/bin \
        install
}
# :mode=shellscript: