23 lines
792 B
Bash
23 lines
792 B
Bash
# Template file for 'zzz-user-hooks'
|
|
pkgname=zzz-user-hooks
|
|
version=1.1.0
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
depends="bash"
|
|
checkdepends="shellcheck"
|
|
short_desc="Allow user scripts for logged in user using zzz suspend/resume"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://www.daveeddy.com/2018/10/01/run-user-scripts-on-suspend-and-wakeup-on-void-linux/"
|
|
distfiles="https://github.com/bahamas10/zzz-user-hooks/archive/v${version}.tar.gz"
|
|
checksum=83fb98153b1906c85946efb18eaad52a95a297a36528f975ba006e650e8459bd
|
|
|
|
do_install() {
|
|
vmkdir /etc/zzz.d/resume
|
|
vmkdir /etc/zzz.d/suspend
|
|
vinstall user-script 755 /etc/zzz.d
|
|
vinstall hooks/resume/99-user-script 755 /etc/zzz.d/resume
|
|
vinstall hooks/suspend/99-user-script 755 /etc/zzz.d/suspend
|
|
vlicense LICENSE
|
|
}
|