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 }