1 # $Id: PKGBUILD 8842 2010-01-21 22:55:25Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Maintainer: Todd Musall <tmusall@comcast.net>
9 pkgdesc="Apcupsd version without GUI and webinterface"
11 url="http://www.apcupsd.org"
14 makedepends=('pkgconfig')
16 backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf \
17 etc/apcupsd/multimon.conf)
18 source=(http://downloads.sourceforge.net/apcupsd/$_orig-$pkgver.tar.gz \
20 md5sums=('cd17f0a903dc2220e55ed54e242359d2'
21 '5eae3c4d921eeb81798a0250fe3dd111')
24 cd $startdir/src/$_orig-$pkgver
25 ./configure --prefix=/usr --libexecdir=/usr/lib/$_orig \
26 --enable-usb --enable-net \
27 --with-upstype=usb --with-upscable=usb \
28 --with-serial-dev=/dev/usb/hid/hiddev[0-9] \
32 make DESTDIR=$startdir/pkg install || return 1
34 install -D -m755 ../apcupsd $startdir/pkg/etc/rc.d/apcupsd && \
35 chmod 755 $startdir/pkg/sbin/*