# Contributor: Bernhard Walle <bernhard@bwalle.de>
# AUR Category: system
pkgname=serdisplib
pkgver=1.97.9
pkgrel=1
pkgdesc="Library for Certain Serial and Parallel LC Displays"
url="http://serdisplib.sourceforge.net/"
license="GPL"
depends=(libusb gd)
arch=('i686' 'x86_64')
source=(http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('130552ec60d01e974712a60274f34de7')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --enable-libusb
  make || return 1
}
package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} includedir=${pkgdir}/usr/include \
        libdir=${pkgdir}/usr/lib bindir=${pkgdir}/usr/bin \
        install
}
# :mode=shellscript: