mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
sys-apps/rogdrv: new package
Signed-off-by: Henrik Pihl <ahvenas@gmail.com>
This commit is contained in:
1
sys-apps/rogdrv/Manifest
Normal file
1
sys-apps/rogdrv/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST rogdrv-0.0.5.tar.gz 68703 BLAKE2B 4896b35eeefa0fc35251eeae993eb54669f0ed67e401de06a688954b15cbc13691a4d52ae3ecb7441079a610505d0162c9b82da5dd98712bbdaa632773637d03 SHA512 9db833ca0b0d8ddbce484aa1745e83cb169477e1fdb76e740a4a63106756ef55a06e63ef4c97e565c4425c97ed3e7aeeefa9e099da386c8fc3e168ded720ba2d
|
||||
11
sys-apps/rogdrv/metadata.xml
Normal file
11
sys-apps/rogdrv/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<remote-id type="github">https://github.com/kyokenn/rogdrv</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>ahvenas@gmail.com</email>
|
||||
<name>Henrik Pihl</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
48
sys-apps/rogdrv/rogdrv-0.0.5.ebuild
Normal file
48
sys-apps/rogdrv/rogdrv-0.0.5.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1 linux-info udev
|
||||
|
||||
COMMIT="4bdb41403d2000ae8941bc987f5a2dbafedbc544"
|
||||
DESCRIPTION="ASUS ROG userspace mouse driver for Linux."
|
||||
HOMEPAGE="https://github.com/kyokenn/rogdrv"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
SRC_URI="https://github.com/kyokenn/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-libs/libappindicator
|
||||
dev-python/python-evdev
|
||||
dev-python/cffi
|
||||
dev-python/cython-hidapi
|
||||
virtual/udev"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
CONFIG_CHECK="~INPUT_UINPUT"
|
||||
|
||||
python_prepare_all() {
|
||||
# duplicate text, commited to upstream
|
||||
sed -i -e '/Comment=ASUS/d' rogdrv.desktop rogdrv/gtk3.py
|
||||
# udev rules are placed outside /usr
|
||||
sed -i -e '/etc[\/]udev/d' setup.py
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
udev_dorules udev/50-rogdrv.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Reconnect your mouse to get your mouse working with the new rules."
|
||||
elog "See the README file for usage instructions."
|
||||
udev_reload
|
||||
}
|
||||
Reference in New Issue
Block a user