summaryrefslogtreecommitdiffstats
path: root/unstable/apcupsd/APKBUILD
blob: 5be90f9c9674f5b27530990a06caf99a33bf2661 (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
pkgname=apcupsd
pkgver=3.14.6
pkgrel=1
pkgdesc="A Daemon to control APC UPSes"
subpackages="$pkgname-doc"
url="http://www.apcupsd.org"
license="GPL-2"
depends="util-linux-ng"
makedepends=
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="7df2dbe325a6b1822763cbf6a9fa8263  apcupsd-3.14.6.tar.gz
0798cd407de6f199d4c267036ec54c5b  apcupsd.initd"