pkgname=apcupsd pkgver=3.14.5 pkgrel=0 pkgdesc="A Daemon to control APC UPSes" subpackages="$pkgname-doc" url="http://www.apcupsd.org" license="GPL-2" depends="uclibc util-linux-ng" makedepends="g++" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz apcupsd.initd " build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ --mandir=/usr/share/man \ --enable-usb make || return 1 make DESTDIR=$pkgdir install install -D -m755 "$srcdir"/apcupsd.initd "$pkgdir"/etc/init.d/apcupsd } md5sums="4ac73ec91d8ab56f3fac894e172567c4 apcupsd-3.14.5.tar.gz d276b567fd8dfb9e2a74e533b25de031 apcupsd.initd"