summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/acpid/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/acpid/PKGBUILD')
-rw-r--r--abs/core-testing/acpid/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core-testing/acpid/PKGBUILD b/abs/core-testing/acpid/PKGBUILD
new file mode 100644
index 0000000..f39bbc1
--- /dev/null
+++ b/abs/core-testing/acpid/PKGBUILD
@@ -0,0 +1,31 @@
+
+pkgname=acpid
+pkgver=1.0.6
+pkgrel=3
+arch=('i686')
+pkgdesc="Utilities for using ACPI power management"
+url="http://acpid.sourceforge.net"
+depends=(glibc)
+source=(http://easynews.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+ acpid-1.0.4-gcc4.patch
+ acpid
+ anything
+ handler.sh
+ Makefile )
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
+#options='-D_GNU_SOURCE'
+MAKEFLAGS="-j2"
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ # patch -Np1 -i ${startdir}/src/acpid-1.0.4-gcc4.patch || return 1
+ cp ../Makefile .
+ /usr/bin/make || return 1
+ /bin/install -d -m0755 $startdir/pkg/usr/bin
+ /usr/bin/make INSTPREFIX=$startdir/pkg \
+ MAN8DIR=$startdir/pkg/usr/man/man8 install
+ /bin/install -D -m0755 ../acpid $startdir/pkg/etc/rc.d/acpid
+ /bin/install -d -m0755 $startdir/pkg/etc/acpi/events
+ /bin/install -D -m0644 ../anything $startdir/pkg/etc/acpi/events/anything
+ /bin/install -D -m0755 ../handler.sh $startdir/pkg/etc/acpi/handler.sh
+}