summaryrefslogtreecommitdiff
path: root/community/acpid/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-06 00:01:33 +0000
committerroot <root@rshg054.dnsready.net>2012-03-06 00:01:33 +0000
commitb8afacf1f28ac27321feb9b92bd50dd8961b7736 (patch)
treede441882aca38091a1e438e1d8da8a9af3bd023a /community/acpid/PKGBUILD
parent11711de1942a141f28faef695c4c78c8357fbf23 (diff)
Tue Mar 6 00:01:33 UTC 2012
Diffstat (limited to 'community/acpid/PKGBUILD')
-rw-r--r--community/acpid/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/acpid/PKGBUILD b/community/acpid/PKGBUILD
new file mode 100644
index 000000000..fa62a9ebb
--- /dev/null
+++ b/community/acpid/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 67166 2012-03-05 00:42:11Z pschmitz $
+# Maintainer:
+# 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"
+arch=('i686' 'x86_64')
+url="http://tedfelix.com/linux/acpid-netlink.html"
+license=('GPL')
+depends=('bash')
+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"
+ 'acpid'
+ 'anything'
+ 'handler.sh'
+ 'acpid.conf.d')
+md5sums=('14fc1eabc3489f3ded9347fcd55f158a'
+ 'd69203a032c4583f9abaafcf21a7ed84'
+ '2d37b98d6e74bab815604b8b48c6cfd4'
+ 'd411b758e8531adee191b66bcbc2892d'
+ '929c6d2e91295c22ed9ec6212d7eabef')
+
+build() {
+ cd "${srcdir}"/$pkgname-$pkgver
+ make
+}
+
+package() {
+ cd "${srcdir}"/$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"
+
+ chmod 755 "${pkgdir}"/usr/sbin/acpid
+}