summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/acpid/PKGBUILD
blob: 5b9d03365c75394aa4a61f31cac6e9f7837d9d56 (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
# $Id: PKGBUILD 20369 2008-12-03 02:03:14Z thayer $
# Contributor: Manolis Tzanidakis
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Maintainer: Thayer Williams <thayer@archlinux.org>

pkgname=acpid
pkgver=1.0.8
pkgrel=2
pkgdesc="A daemon for delivering ACPI power management events"
url="http://acpid.sourceforge.net"
license=('GPL2')
arch=('i686' 'x86_64')
depends=(glibc)
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
    acpid
    anything
    handler.sh)
backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')

build() {
    cd $srcdir/$pkgname-$pkgver
    /usr/bin/make || return 1
    /bin/install -d -m0755 $pkgdir/usr/bin || return 1
    /usr/bin/make INSTPREFIX=$pkgdir \
        MAN8DIR=$pkgdir/usr/share/man/man8 install || return 1

    # install our supplementary scripts
    /bin/install -D -m0755 $srcdir/acpid $pkgdir/etc/rc.d/acpid || return 1
    /bin/install -D -m0644 $srcdir/anything $pkgdir/etc/acpi/events/anything || return 1
    /bin/install -D -m0755 $srcdir/handler.sh $pkgdir/etc/acpi/handler.sh || return 1

    # set world readable bit on the acpid binary
    /bin/chmod 755 $pkgdir/usr/sbin/acpid || return 1
}