2018-01-03 21:54:36 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2018-01-04 22:11:26 +03:00
|
|
|
inherit qmake-utils systemd git-r3 udev
|
2018-01-03 21:54:36 +03:00
|
|
|
|
|
|
|
DESCRIPTION="Corsair K65/K70/K95 Driver"
|
2018-01-22 21:01:24 +03:00
|
|
|
HOMEPAGE="https://github.com/ckb-next/ckb-next"
|
|
|
|
EGIT_REPO_URI="https://github.com/ckb-next/ckb-next.git"
|
2018-01-03 21:54:36 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
sed -i -e "s/\#\!\/usr\/bin\/openrc-run/\#\!\/sbin\/openrc-run/" service/openrc/ckb-daemon || 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
|
|
|
|
newinitd service/openrc/ckb-daemon ckb-daemon
|
|
|
|
domenu usr/ckb.desktop
|
|
|
|
doicon usr/ckb.png
|
|
|
|
systemd_dounit service/systemd/ckb-daemon.service
|
|
|
|
dosym /usr/bin/ckb-animations /usr/lib/ckb-animations
|
2018-01-04 22:11:26 +03:00
|
|
|
udev_dorules udev/99-ckb-daemon.rules
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
udev_reload
|
2018-01-03 21:54:36 +03:00
|
|
|
}
|