summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/acpid/PKGBUILD
blob: f39bbc1bae2401e8e684b400d3a84e5598f7599e (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

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
}