From 380f9f12dfedc59efc2c3f74ecce3f829e079f46 Mon Sep 17 00:00:00 2001 From: T0mstone Date: Sat, 18 Mar 2023 22:36:22 +0100 Subject: [PATCH] New package: logiops-0.3.2 Co-authored-by: Duncaen Closes: https://github.com/void-linux/void-packages/pull/42849 --- srcpkgs/logiops/files/logid/run | 5 +++++ srcpkgs/logiops/template | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/logiops/files/logid/run create mode 100644 srcpkgs/logiops/template diff --git a/srcpkgs/logiops/files/logid/run b/srcpkgs/logiops/files/logid/run new file mode 100644 index 00000000000..610a27239ba --- /dev/null +++ b/srcpkgs/logiops/files/logid/run @@ -0,0 +1,5 @@ +#!/bin/sh +exec 2>&1 +[ -r conf ] && . ./conf +modprobe -q hid_logitech_hidpp || exit 1 +exec logid ${OPTS} diff --git a/srcpkgs/logiops/template b/srcpkgs/logiops/template new file mode 100644 index 00000000000..f0fdb5a4ec0 --- /dev/null +++ b/srcpkgs/logiops/template @@ -0,0 +1,29 @@ +# Template file for 'logiops' +pkgname=logiops +version=0.3.2 +revision=1 +_ipcgull_rev=4f22a43e3380dc1e9c0a490201f4d745390b623f +build_style=cmake +hostmakedepends="pkg-config" +makedepends="libevdev-devel eudev-libudev-devel libconfig-devel libconfig++-devel + glib-devel" +short_desc="Unofficial userspace driver for HID++ Logitech devices" +maintainer="T0mstone " +license="GPL-3.0-or-later" +homepage="https://github.com/PixlOne/logiops" +changelog="https://github.com/PixlOne/logiops/releases/tag/v${version}" +distfiles="https://github.com/PixlOne/logiops/archive/refs/tags/v${version}.tar.gz + https://github.com/PixlOne/ipcgull/archive/${_ipcgull_rev}.tar.gz" +checksum="6c7210a84f9695a7530030dba9fff7e44765c971c7ef06461ff9c8646a64c036 + 67068523dc0ea4750d501309d8041ca3511fa3e22fa1c453a3bc9f2ea5c95f45" +skip_extraction="${_ipcgull_rev}.tar.gz" + +post_extract() { + bsdtar xzf "$XBPS_SRCDISTDIR/$pkgname-$version/$_ipcgull_rev.tar.gz" \ + --strip-components=1 -C "$wrksrc/src/ipcgull" +} + +post_install() { + vsconf logid.example.cfg logid.cfg + vsv logid +}