summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/lcdproc/PKGBUILD
blob: 7ee6e50d8de31fab2820bc0c4a6a4a333acdf1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Bernhard Walle <bernhard.walle@gmx.de>
pkgname=lcdproc
pkgver=0.5.2
pkgrel=2
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)
source=(http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
        lcdd
        lcdproc-add-serdisplib
        )
md5sums=('860f192d061d87dda6512b11b79daac2'
         '56f52dcccd6e129a9cf84cd1a0452d56'
         '274322642740ad323c43ec5d324519d4')

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 > $startdir/pkg/etc/LCDd.conf
  mkdir -p $startdir/pkg/etc/rc.d
  install -m 755 $startdir/src/lcdd $startdir/pkg/etc/rc.d
}