From b2446f58172e1c82835b45d7b218d1fa4386f6e6 Mon Sep 17 00:00:00 2001 From: Lian Drake Date: Sat, 2 Nov 2024 06:52:49 -0400 Subject: [PATCH] Added X11 stuff --- xidlehook/template | 22 ++++++++++++++++++++++ xssproxy/template | 21 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 xidlehook/template create mode 100644 xssproxy/template diff --git a/xidlehook/template b/xidlehook/template new file mode 100644 index 0000000..3d1de47 --- /dev/null +++ b/xidlehook/template @@ -0,0 +1,22 @@ +# Template file for 'xidlehook' +pkgname=xidlehook +version=0.10.0 +revision=1 +build_wrksrc="xidlehook-daemon" +build_style=cargo +configure_args="$(vopt_if pulseaudio '--features pulse' '--no-default-features')" +hostmakedepends="pkg-config python3" +makedepends="libxcb-devel libXScrnSaver-devel $(vopt_if pulseaudio pulseaudio-devel)" +short_desc="Xautolock rewrite in Rust, with a few extra features" +maintainer="MOIS3Y " +license="MIT" +homepage="https://gitlab.com/jD91mZM2/xidlehook" +distfiles="https://gitlab.com/jD91mZM2/xidlehook/-/archive/${version}/xidlehook-${version}.tar.gz" +checksum=66751b78c5174c0e430d9becd749771d593f388db348514d8c3256670dc77cd8 +build_options_default="pulseaudio" +desc_option_pulseaudio="Don't invoke the timer when any audio is playing (Only works with Pulseaudio)" +build_options="pulseaudio" + +post_install() { + vlicense ../LICENSE +} diff --git a/xssproxy/template b/xssproxy/template new file mode 100644 index 0000000..f20af21 --- /dev/null +++ b/xssproxy/template @@ -0,0 +1,21 @@ +# Template file for 'xssproxy' +pkgname=xssproxy +version=1.0.1 +revision=1 +_author=vincentbernat +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="glib-devel libX11-devel libXScrnSaver-devel dbus-devel" +short_desc="Forward freedesktop.org Idle Inhibition Service calls to Xss" +maintainer="Lian Drake " +license="MIT" +homepage="https://github.com/vincentbernat/xssproxy" +distfiles="https://github.com/${_author}/${pkgname}/archive/refs/tags/v${version}.tar.gz" +checksum=c949a2554e9bd5e57cc30189ae58abda097ca7f30cf0ce6ca8174d475087a9ea + +# Override installation paths +make_install_args="bindir=/usr/bin man1dir=/usr/share/man/man1" + +post_install() { + vlicense LICENSE.txt +}