blob: 0efab4dd3f8be274c58695ef31526806ce0ae129 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $Id: PKGBUILD 8842 2010-01-21 22:55:25Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Todd Musall <tmusall@comcast.net>
pkgname=apcupsd-cli
_orig=apcupsd
pkgver=3.14.10
pkgrel=1
pkgdesc="Apcupsd version without GUI and webinterface"
arch=(i686 x86_64)
url="http://www.apcupsd.org"
license=('GPL')
depends=('gcc-libs' systemd-sysvcompat)
makedepends=('pkgconfig')
conflicts=('apcupsd')
backup=(etc/apcupsd/apcupsd.conf
etc/apcupsd/changeme
etc/apcupsd/commfailure
etc/apcupsd/commok
etc/apcupsd/offbattery
etc/apcupsd/onbattery
etc/apcupsd/apccontrol)
source=(http://downloads.sourceforge.net/apcupsd/$_orig-$pkgver.tar.gz
service)
md5sums=('5928822d855c5cf7ac29655e3e0b8c23'
'ccb06b7c2f680c75c2fa3e5c9aa7a234')
build() {
cd "$srcdir/$_orig-$pkgver"
./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/$_orig \
--enable-usb --enable-net \
--with-upstype=usb --with-upscable=usb \
--with-serial-dev=/dev/usb/hid/hiddev[0-9] \
--enable-pthreads
make
}
package() {
cd "$srcdir/$_orig-$pkgver"
make DESTDIR="$pkgdir" install
install -D -m755 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/apcupsd.service"
rm -rf "$pkgdir/usr/share/hal"
chmod 755 $pkgdir/usr/sbin/*
}
|