diff options
author | root <root@rshg054.dnsready.net> | 2012-03-15 00:01:19 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-15 00:01:19 +0000 |
commit | 14635ca5380a480450a66c3fcc29992d29a2bd8e (patch) | |
tree | a2f8e712c9e15b829397666c06d1cdd1a877d8a6 /community/acpid | |
parent | 01a0c4bc740842efa3bf1a7e1d6c8be5656e4e2a (diff) |
Thu Mar 15 00:01:19 UTC 2012
Diffstat (limited to 'community/acpid')
-rw-r--r-- | community/acpid/PKGBUILD | 27 | ||||
-rw-r--r-- | community/acpid/handler.sh | 2 |
2 files changed, 16 insertions, 13 deletions
diff --git a/community/acpid/PKGBUILD b/community/acpid/PKGBUILD index fa62a9ebb..152a80649 100644 --- a/community/acpid/PKGBUILD +++ b/community/acpid/PKGBUILD @@ -1,17 +1,18 @@ -# $Id: PKGBUILD 67166 2012-03-05 00:42:11Z pschmitz $ -# Maintainer: +# $Id: PKGBUILD 67553 2012-03-13 12:19:58Z 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.14 -pkgrel=1 -pkgdesc="A daemon for delivering ACPI power management events with netlink support" +pkgrel=2 +pkgdesc='A daemon for delivering ACPI power management events with netlink support' arch=('i686' 'x86_64') -url="http://tedfelix.com/linux/acpid-netlink.html" +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.gz" @@ -22,22 +23,24 @@ source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz" md5sums=('14fc1eabc3489f3ded9347fcd55f158a' 'd69203a032c4583f9abaafcf21a7ed84' '2d37b98d6e74bab815604b8b48c6cfd4' - 'd411b758e8531adee191b66bcbc2892d' + '615439f4a89716c747907d4fc3c8df75' '929c6d2e91295c22ed9ec6212d7eabef') build() { - cd "${srcdir}"/$pkgname-$pkgver + cd $pkgname-$pkgver make } package() { - cd "${srcdir}"/$pkgname-$pkgver + cd $pkgname-$pkgver make DESTDIR="${pkgdir}" install - install -Dm755 "$srcdir/acpid" "$pkgdir/etc/rc.d/acpid" - install -Dm644 "$srcdir/anything" "$pkgdir/etc/acpi/events/anything" - install -Dm755 "$srcdir/handler.sh" "$pkgdir/etc/acpi/handler.sh" - install -Dm644 "$srcdir/acpid.conf.d" "$pkgdir/etc/conf.d/acpid" + 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: diff --git a/community/acpid/handler.sh b/community/acpid/handler.sh index 505ed7c11..aac143a9a 100644 --- a/community/acpid/handler.sh +++ b/community/acpid/handler.sh @@ -17,7 +17,7 @@ case "$1" in ;; button/sleep) case "$2" in - SLPB) echo -n mem >/sys/power/state ;; + SLPB|SBTN) echo -n mem >/sys/power/state ;; *) logger "ACPI action undefined: $2" ;; esac ;; |