updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / urfkill / PKGBUILD
blob648f89499be08005c5a06f49dbfc9866d44184a7
1 # Maintainer: Reza Jelveh <reza.jelveh at tuhh.de>
3 pkgname=urfkill
4 pkgver=0.2.0
5 pkgrel=1
6 pkgdesc="radio killswitch management daemon"
7 url="http://www.freedesktop.org/wiki/Software/urfkill"
8 arch=('i686' 'x86_64')
9 license=('BSD')
10 groups=('base')
11 depends=('glib2' 'sh' 'dbus' 'udev' 'polkit')
12 backup=('etc/urfkill/urfkill.conf')
13 options=()
14 source=("https://github.com/downloads/lcp/$pkgname/$pkgname-$pkgver.tar.bz2" \
15         'rc.urfkilld'
16         'daemon_patch.diff')
17 sha1sums=('b87578761fecb7539efe53733e33d32eea68fc96'
18           'f96f8d7cecd086c199d2f72a35aac28ae5820a41'
19           'ae077bf7c96afe778643fda1e43585241c886ac3')
21 build() {
22   cd ${srcdir}/${pkgname}-${pkgver}
24   patch -p1 < $srcdir/daemon_patch.diff
25   # configure variables
26   ./configure --sysconfdir=/etc --libexecdir=/usr/lib/urfkill --prefix=/usr
28   # Build
29   make
32 package() {
33   cd ${srcdir}/${pkgname}-${pkgver}
34   make DESTDIR=${pkgdir} install
36   sed -i 's/user=root/user=nobody/' $pkgdir/etc/urfkill/urfkill.conf
37   install -D -m755 \
38     $srcdir/rc.urfkilld $pkgdir/etc/rc.d/urfkilld || return 1