app-misc/ckb-0.4.2

This commit is contained in:
Alarig Le Lay 2019-10-29 19:55:34 +01:00
parent b0f24323f4
commit d4eb8e4df4
3 changed files with 81 additions and 0 deletions

3
app-misc/ckb/Manifest Normal file
View file

@ -0,0 +1,3 @@
AUX ckb.initd 659 BLAKE2B 1de2e8b9b555f2d083698e8302c972619dc08ca652bb1ef06e3a72ec9fa026f74aadb5e86491b4a95fe1c44699a21802907c75c67e3d09bc12caa2114052eaf8 SHA512 45c98f5b3cf2868fd7a5b0a015222b1dc6608847d380a1a3ccc95fab306bfde642a74e5dafe1545b380516fb4d41e30d76b9c1f826882dae28a0332f6c3b40ad
DIST ckb-0.4.2.tar.gz 883681 BLAKE2B b3d921010b1caa8cb870770c6cf3ff0e9f6c65ea742325995e26351331e3063a16e8a391f593bfc8b16663cef0580e087d776796ea69776465122b08e00e9382 SHA512 4c80101e935a4d5137b0fd6aaf7d97889913af0bbb8e3097e035e2420043d6525094c1e3f7b5676e8c50328454251ff3260f6aa9b81ec583a2e8136333ee6af8
EBUILD ckb-0.4.2.ebuild 883 BLAKE2B 8d533915088e7206c86c6f471bc706621416f21ae7eb05983eaa9835af968fee54cc3a7f7afd83c26bcb7561e513075b6b74778a24026a1da8316aac6ce4eb94 SHA512 baf2bd6325e50ec524c21911ec9ff9e961c14ed90ae6da0223f2fec17a34ec407b5474065b3db20ce2577b13b7ee6497d5682e0ea240a08f4eaa5c12cbe91c2b

View file

@ -0,0 +1,49 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop cmake-utils systemd
DESCRIPTION="Corsair K65/K70/K95 Driver"
HOMEPAGE="https://github.com/ckb-next/ckb-next"
SRC_URI="https://github.com/ckb-next/ckb-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
>=dev-libs/quazip-0.7.2[qt5(+)]
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
virtual/libudev:=
x11-libs/libX11
"
RDEPEND="${DEPEND}"
DOCS=( CHANGELOG.md README.md )
S="${WORKDIR}/${PN}-next-${PV}"
src_configure() {
local mycmakeargs=(
-DDISABLE_UPDATER=yes
)
cmake-utils_src_configure
}
src_install() {
newinitd "${FILESDIR}"/ckb.initd ckb-daemon
cmake-utils_src_install
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}

View file

@ -0,0 +1,29 @@
#!/sbin/openrc-run
## Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
extra_started_commands="reload"
command="/usr/bin/ckb-daemon"
description="Controller for Corsair Keyboard Driver"
pidfile="/run/ckb.pid"
logfile="/var/run/ckb.log"
start() {
ebegin "Starting Corsair Keyboard Driver"
start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}" --background \
--stdout "${logfile}" --stderr "${logfile}"
eend $?
}
stop() {
ebegin "Stopping Corsair Keyboard Driver"
start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
eend $?
}
reload() {
stop
sleep 3
start
}