From 521b5c0ee4b80886ab7283f605486e728b397af9 Mon Sep 17 00:00:00 2001 From: xXR01I1Xx Date: Sat, 9 Jan 2021 00:06:05 +0100 Subject: [PATCH] New package: xidlehook-0.9.1 --- srcpkgs/xidlehook/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/xidlehook/template diff --git a/srcpkgs/xidlehook/template b/srcpkgs/xidlehook/template new file mode 100644 index 00000000000..5dbb749d722 --- /dev/null +++ b/srcpkgs/xidlehook/template @@ -0,0 +1,31 @@ +# Template file for 'xidlehook' +pkgname=xidlehook +version=0.9.1 +revision=1 +archs="x86_64" +build_style=cargo +configure_args="$(vopt_if audio '--features pulse' '--no-default-features')" +make_install_args="--path xidlehook-daemon" +hostmakedepends="pkg-config" +makedepends="libxcb-devel libXScrnSaver-devel $(vopt_if audio libpulseaudio)" +short_desc="Xidlehook is a general-purpose replacement for xautolock" +maintainer="xXR01I1Xx " +license="MIT" +homepage="https://gitlab.com/jD91mZM2/xidlehook" +distfiles="${homepage}/-/archive/${version}/${pkgname}-${version}.tar.gz" +checksum=3ad93080cf8114d2a9521f9288a09e351a54630f70d2d8cd87beb5f5e3f1f8b1 +build_options_default="audio" +desc_option_audio="Don't invoke the timer when any audio is playing (Only works with Pulseaudio)" +build_options="audio" + +do_build() { + cargo build --release --target ${RUST_TARGET} ${configure_args} --manifest-path xidlehook-daemon/Cargo.toml +} + +do_check() { + cargo test --release --target ${RUST_TARGET} +} + +post_install() { + vlicense LICENSE +}