jobextra/acpid/PKGBUILD
2023-08-19 02:38:52 +03:00

52 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=acpid
pkgver=2.0.34
pkgrel=02
pkgdesc='A daemon for delivering ACPI power management events with netlink support w/o systemd'
arch=('x86_64')
url='https://sourceforge.net/projects/acpid2/'
depends=('bash')
optdepends=('perl: use perl based examples')
replaces=('acpid2')
backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
source=("https://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
# 'acpid.service'
'anything'
'handler.sh')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# default config
install -Dm644 ../anything "$pkgdir/etc/acpi/events/anything"
install -Dm755 ../handler.sh "$pkgdir/etc/acpi/handler.sh"
### systemd acpid service removed - both runit and s6/66 setup have a service available ###
# systemd
# install -Dm644 ../acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
}
#---- license gpg-key sha256sums ----
license=('GPL')
sha256sums=(2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333 # acpid-2.0.34.tar.xz
eb5230affb9dba7653890655b94e83f377c689a39131b6b13c8202ba2382c275 # anything
1c1e39b7ecc57092ba9d747f452fb36d8ae0456e2e64849c9c4a2625d1d57413) # handler.sh
# 6ad29e963b2ad6f9644b6835d305e7cbae6bd62e86e953253bf837e318ae583a acpid-2.0.34-02-x86_64.pkg.tar.lz