summaryrefslogtreecommitdiff
path: root/community/acpid/PKGBUILD
blob: 53ff54a8741a4a2ec034cb53b647c3c78ca7ac2a (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
# $Id: PKGBUILD 69396 2012-04-15 17:01:41Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: xduugu
# Contributor: Manolis Tzanidakis
# Contributor: Jonathan Schmidt <j.schmidt@archlinux.us

pkgname=acpid
pkgver=2.0.16
pkgrel=1
pkgdesc='A daemon for delivering ACPI power management events with netlink support'
arch=('i686' 'x86_64')
url='http://tedfelix.com/linux/acpid-netlink.html'
license=('GPL')
depends=('bash')
optdepends=('perl: use perl based examples')
replaces=('acpid2')
backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.xz"
        'acpid'
        'anything'
        'handler.sh'
        'acpid.conf.d')
md5sums=('d59fc02c9c34f0d5c137495302e2c074'
         'd69203a032c4583f9abaafcf21a7ed84'
         '2d37b98d6e74bab815604b8b48c6cfd4'
         '615439f4a89716c747907d4fc3c8df75'
         '929c6d2e91295c22ed9ec6212d7eabef')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install

  install -Dm755 ../acpid "$pkgdir/etc/rc.d/acpid"
  install -Dm644 ../anything "$pkgdir/etc/acpi/events/anything"
  install -Dm755 ../handler.sh "$pkgdir/etc/acpi/handler.sh"
  install -Dm644 ../acpid.conf.d "$pkgdir/etc/conf.d/acpid"

  chmod 755 "$pkgdir"/usr/sbin/acpid
}

# vim:set ts=2 sw=2 ft=sh et: