summaryrefslogtreecommitdiff
path: root/app-misc/ckb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/ckb
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/ckb')
-rw-r--r--app-misc/ckb/Manifest6
-rw-r--r--app-misc/ckb/ckb-0.2.6-r1.ebuild45
-rw-r--r--app-misc/ckb/files/ckb.initd29
-rw-r--r--app-misc/ckb/metadata.xml11
4 files changed, 91 insertions, 0 deletions
diff --git a/app-misc/ckb/Manifest b/app-misc/ckb/Manifest
new file mode 100644
index 000000000000..65b9831c8f2b
--- /dev/null
+++ b/app-misc/ckb/Manifest
@@ -0,0 +1,6 @@
+AUX ckb.initd 659 SHA256 44add360f36d5df6b3a4ec182180feff98e2f4983b69216ec3e4a2464f724ca5 SHA512 45c98f5b3cf2868fd7a5b0a015222b1dc6608847d380a1a3ccc95fab306bfde642a74e5dafe1545b380516fb4d41e30d76b9c1f826882dae28a0332f6c3b40ad WHIRLPOOL 725b1e0fbcfba1e1d6f3b510b0fe6e9c9365600fac1329cee66e9568121d6c3804030718ed96e7a5d04fe915701bfe2cfcf04b4933221a092fc1810871f8e7af
+DIST ckb-0.2.6.tar.gz 526737 SHA256 924b22b7dd94f7ad6f0686859a05b0cb5df0aa12133bb9d277f2f1bd47672d91 SHA512 6d92b0e82865748d9731943462d2cb89c3ea0dea4170f8aebcf5e1ed491c5d635dcd69a4f1f385ab891846f2b3437e2cb154f5dae5f5446cf52e557ebf6343a6 WHIRLPOOL d739de63be05cdd24a417e619156e99df2c1ca32fb51a660ef2484609e83a7019296826173ee7268539a65d4b2f48ca6d10b4588756fc1c6e7a22a2f71edc646
+EBUILD ckb-0.2.6-r1.ebuild 1011 SHA256 54678080967d2021c12ee4a5fac1a0de43ec436863a139e6ca69bcbd272ddbdf SHA512 61f134be4dfda266a6ae4469126a6b8adc45adde59d42a550a90bc9c2208268806c312ab31a0e3b0cc95ea8c9745e51f20f32703b91723cdbc56ff13221f07f2 WHIRLPOOL d4d3d8fb2c649b092772763a46aee276b7a4a9b60c808f49de646949b0b692d35c0cae5c1663fe94965afa744fc97824e90310ae2654c45a653c475a3dcab70e
+MISC ChangeLog 4057 SHA256 22d4d072c7c1ad18a2de5501d38ee168a0a5806c495d5ab32733ee2af59e008b SHA512 cb2bc4ec3795dc885b75405c3001a78204cae0a96f79923ab613d02c8a1603de0aaefe19f54b1800f53eaaf9824981c2c14c2b4b1fbc69a2155989b482780ada WHIRLPOOL 296b04e20f47765cc85f00d69b1343374646097bc44eec53b5ff1f86fdb7ea64f3193355cfcb47da0d61bf8e48b098cd9c0be2b61b154d120e3863887fcac4f6
+MISC ChangeLog-2015 592 SHA256 73f989d1f321406e6d9a10b829b03a1bb1af43933b1beb07b59822b89c824a74 SHA512 be7855aa4c3da9fa9cc181c5ef3d7b8e54546d46161ab6ec71832df7bc0ee8a3f5aecf1697d66c4abeadcb85d9e4f68815f8b84bb7efa7cd34d0cb24b68e9ccf WHIRLPOOL a5fa411d84440ede00cb944137fab6f8b4f420a510ac96f63a2d606a5725cc773208c20e3692d9d3394607116f7aed9199f03577eb7d53bdae9bca9bde68ea60
+MISC metadata.xml 319 SHA256 d8b37a10ff8fbbe936a2ec45b5d373be9cff9dc21bd8092970749ca13e8111d9 SHA512 62f3e5ae4cdf822445aac43dfb6a42da92230a79f007b15c5af65a802741338ff5008fe4ac9afb14bca120e23a2b947c92f8e132d0b3f5c36a43efd7a22c3183 WHIRLPOOL f82fe2516d198b0042f3efcad4e22e214adcfbec689e9aa7398ba06176f8d77c60a06d9d25f8d77e15c90b7b1f749820c72399af0b66fabfc93628ea5ff80766
diff --git a/app-misc/ckb/ckb-0.2.6-r1.ebuild b/app-misc/ckb/ckb-0.2.6-r1.ebuild
new file mode 100644
index 000000000000..7bb8d1c6bc51
--- /dev/null
+++ b/app-misc/ckb/ckb-0.2.6-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils systemd
+
+DESCRIPTION="Corsair K65/K70/K95 Driver"
+HOMEPAGE="https://github.com/ccMSC/ckb"
+SRC_URI="https://github.com/ccMSC/ckb/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"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md BUILD.md DAEMON.md )
+
+src_prepare() {
+ sed -i -e "s/-Werror=all//" src/ckb-daemon/ckb-daemon.pro || die
+ sed -i -e "/quazip/d" -e "s/^.*QUAZIP_STATIC/LIBS += -lquazip5/" src/ckb/ckb.pro || die
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ dobin bin/ckb bin/ckb-daemon
+ dodir /usr/bin/ckb-animations
+ exeinto /usr/bin/ckb-animations
+ doexe bin/ckb-animations/*
+
+ newinitd "${FILESDIR}"/ckb.initd ckb-daemon
+ domenu usr/ckb.desktop
+ doicon usr/ckb.png
+ systemd_dounit service/systemd/ckb-daemon.service
+}
diff --git a/app-misc/ckb/files/ckb.initd b/app-misc/ckb/files/ckb.initd
new file mode 100644
index 000000000000..76af0fd8438b
--- /dev/null
+++ b/app-misc/ckb/files/ckb.initd
@@ -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
+}
diff --git a/app-misc/ckb/metadata.xml b/app-misc/ckb/metadata.xml
new file mode 100644
index 000000000000..cb945f500083
--- /dev/null
+++ b/app-misc/ckb/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel RĂ¼ger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ccMSC/ckb</remote-id>
+ </upstream>
+</pkgmetadata>