updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / apcupsd-cli / PKGBUILD
blobba47f08d4cd9eda9f09c138dd2d78922ff91d4d9
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>
5 pkgname=apcupsd-cli
6 _orig=apcupsd
7 pkgver=3.14.8
8 pkgrel=1
9 pkgdesc="Apcupsd version without GUI and webinterface"
10 arch=(i686 x86_64)
11 url="http://www.apcupsd.org"
12 license=('GPL')
13 depends=('gcc-libs')
14 makedepends=('pkgconfig')
15 conflicts=('apcupsd')
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 \
19         apcupsd)
20 md5sums=('cd17f0a903dc2220e55ed54e242359d2'
21          '5eae3c4d921eeb81798a0250fe3dd111')
23 build() {
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] \
29                 --enable-pthreads
31   make || return 1
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/*