desktop/acpid/PKGBUILD

57 lines
1.9 KiB
Bash
Raw Normal View History

2012-03-31 23:20:21 +08:00
pkgname=acpid
2018-09-02 10:15:05 +08:00
pkgver=2.0.30
2014-08-24 15:28:58 +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')
2018-04-18 07:11:39 +08:00
source=("https://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
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')
2018-09-02 10:15:05 +08:00
sha256sums=('28b77b62d3f64ebd1c2a3d16bccc6d4333b4e24a86aeacebec255fad223cf4cb'
2016-01-16 06:34:48 +08:00
'f23f57646d78bb22b282b9299c5528c6d906cd0c75b080c2606783839e56df49'
'1bd216409d7eaa7665d91bc9ed80a9dca7e2326ebe31bb342f8ae1d364b4e36a'
'eb5230affb9dba7653890655b94e83f377c689a39131b6b13c8202ba2382c275'
'6ae2b153c4ef9cbfd32c4428406fc63d931ea7fdfb2e45529f89b51f4d7ac17a'
'ac08f8c59cfcbf70d60a2fe51b50e8551e0212e42e5f392022f2aeae393ae706'
'35eda2808e6b0c138be793dd4158b8861f2361a7aa31fa626a700a59beb5285e')
2013-11-04 02:17:13 +08:00
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}"
2014-05-24 20:50:49 +08:00
msg '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"
2014-05-24 20:50:49 +08:00
msg 'Install SystemD units...'
2012-10-14 18:28:58 +08:00
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
2014-05-24 20:50:49 +08:00
msg 'Set world readable bit on the acpid binary.'
2012-10-14 18:28:58 +08:00
chmod 0755 "${pkgdir}"/usr/sbin/acpid
2014-05-24 20:50:49 +08:00
msg 'Remove deprecated rc.d files'
rm -rf ${pkgdir}/etc/rc.d/
2012-03-31 23:20:21 +08:00
}