# Template file for 'logiops'
pkgname=logiops
version=0.3.2
revision=2
_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 <realt0mstone@gmail.com>"
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
}
