diff options
Diffstat (limited to 'main/apcupsd/APKBUILD')
-rw-r--r-- | main/apcupsd/APKBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD index 31a6d5a1ba..7eb511ca7f 100644 --- a/main/apcupsd/APKBUILD +++ b/main/apcupsd/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=apcupsd pkgver=3.14.10 -pkgrel=1 +pkgrel=2 pkgdesc="A Daemon to control APC UPSes" subpackages="$pkgname-doc" url="http://www.apcupsd.org" @@ -14,8 +14,14 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz apcupsd-alpine.patch " +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + update_config_sub +} + build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" patch -p1 < ../apcupsd-alpine.patch || return 1 export CHARSET="ISO8859-1" @@ -34,7 +40,7 @@ build() { } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make DESTDIR=$pkgdir install install -D -m755 "$srcdir"/apcupsd.initd "$pkgdir"/etc/init.d/apcupsd } |