# Template file for 'remote-touchpad'
pkgname=remote-touchpad
version=1.5.4
revision=1
build_style=go
go_import_path="github.com/unrud/remote-touchpad"
go_build_tags="portal,uinput,x11"
makedepends="libX11-devel libXt-devel libXrandr-devel libXtst-devel"
short_desc="Control mouse and keyboard from the web browser of another device"
maintainer="Dakota Richline <drichline@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/Unrud/remote-touchpad"
changelog="https://github.com/Unrud/remote-touchpad/blob/master/CHANGELOG.md"
distfiles="https://github.com/Unrud/remote-touchpad/archive/refs/tags/v${version}.tar.gz"
checksum="b43a0b3bb5bf37b29997c78632a846b0cc864b21da2cb9ffb3e8d5e4401dab76"

post_install() {
	vbin desktop/remote-touchpad-wait-on-error
	vinstall desktop/com.github.unrud.RemoteTouchpad.svg 644 usr/share/icons/hicolor/scalable/apps
	vinstall desktop/com.github.unrud.RemoteTouchpad.desktop 644 usr/share/applications com.github.unrud.remotetouchpad.desktop # must be lowercase for xdg-desktop-menu to accept
	vinstall desktop/com.github.unrud.RemoteTouchpad.metainfo.xml 644 usr/share/metainfo
}
