desktop/acpid/PKGBUILD

58 lines
1.7 KiB
Bash
Raw Normal View History

2012-03-31 23:20:21 +08:00
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=acpid
2014-03-27 09:06:30 +08:00
pkgver=2.0.22
2012-03-31 23:20:21 +08:00
pkgrel=1
2012-10-14 18:28:58 +08:00
pkgdesc="A daemon for delivering ACPI power management events with netlink support."
2013-11-04 02:17:13 +08:00
arch=('x86_64')
url="http://sourceforge.net/projects/acpid2/"
2012-10-14 18:28:58 +08:00
license=('GPL')
2012-03-31 23:20:21 +08:00
depends=('bash')
2012-10-14 18:28:58 +08:00
opedepends=('perl: use perl based examples')
2012-03-31 23:20:21 +08:00
backup=('etc/acpi/events/anything'
2012-10-14 18:28:58 +08:00
'etc/acpi/handler.sh'
'etc/conf.d/acpid')
2013-11-04 02:17:13 +08:00
source=("http://sourceforge.net/projects/acpid2/files/${pkgname}-${pkgver}.tar.xz/download"
2012-10-14 18:28:58 +08:00
'acpid'
'acpid.conf.d'
'anything'
'handler.sh'
'acpid.socket'
'acpid.service')
2012-03-31 23:20:21 +08:00
categories=('system')
2014-03-27 09:06:30 +08:00
md5sums=('c8ba756030d1b21fc973ec3d640f27f1'
2013-11-04 02:17:13 +08:00
'd9ca7f71f520238a0448fab105a23fe9'
'91fdb3709c878eed757d192a420251a1'
'2d37b98d6e74bab815604b8b48c6cfd4'
'0e8dd13793b1baa79a745f4034888367'
'ee6cb99e50e580c50331a73045412ae9'
'20e988b8fa6aa4d46e42ab8608774826')
2012-03-31 23:20:21 +08:00
build() {
2012-10-14 18:28:58 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2012-03-31 23:20:21 +08:00
./configure --prefix=/usr
make
}
package() {
2012-10-14 18:28:58 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
cd "${srcdir}"
2012-03-31 23:20:21 +08:00
# Install supplementary scripts.
2012-10-14 18:28:58 +08:00
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"
# Systemd units
install -Dm0644 acpid.socket "${pkgdir}/usr/lib/systemd/system/acpid.socket"
install -Dm0644 acpid.service "${pkgdir}/usr/lib/systemd/system/acpid.service"
2012-03-31 23:20:21 +08:00
# Set world readable bit on the acpid binary.
2012-10-14 18:28:58 +08:00
chmod 0755 "${pkgdir}"/usr/sbin/acpid
2012-03-31 23:20:21 +08:00
}
2014-03-27 09:06:30 +08:00