summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2020-06-29 23:27:23 +0200
committerMarc Schiffbauer <mschiff@gentoo.org>2020-06-29 23:29:20 +0200
commitbd7f8944b45a4ab047f3da2c452c3602b7ef02a1 (patch)
tree6867f7deb89032e48b3ad379146738ed7a1d790d /app-laptop
parentsys-power/tuxedo-cc-wmi: added new ebuild (diff)
downloadgentoo-bd7f8944b45a4ab047f3da2c452c3602b7ef02a1.tar.gz
gentoo-bd7f8944b45a4ab047f3da2c452c3602b7ef02a1.tar.bz2
gentoo-bd7f8944b45a4ab047f3da2c452c3602b7ef02a1.zip
app-laptop/tuxedo-control-center-bin: added new ebuild
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/tuxedo-control-center-bin/Manifest1
-rw-r--r--app-laptop/tuxedo-control-center-bin/metadata.xml8
-rw-r--r--app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.0.3.ebuild78
3 files changed, 87 insertions, 0 deletions
diff --git a/app-laptop/tuxedo-control-center-bin/Manifest b/app-laptop/tuxedo-control-center-bin/Manifest
new file mode 100644
index 000000000000..0a98d1abf690
--- /dev/null
+++ b/app-laptop/tuxedo-control-center-bin/Manifest
@@ -0,0 +1 @@
+DIST tuxedo-control-center_1.0.3.rpm 71190696 BLAKE2B 8892d6612f5610171a8b4832b3a806afab0e1ae8cab10c60dc731100b2e8a0e4e680b19e90d63695ce90bab65e904be0a924e1accdd21fb403cb7773771fb21f SHA512 cc76fe1b65f8b8bd8c43352cd64400c635e7b8db0fd07b71fff6caef690d9c3f415350cba5dbdab14c8dca5aadf045d458ab399bc58cb070b0ee2d11563252c0
diff --git a/app-laptop/tuxedo-control-center-bin/metadata.xml b/app-laptop/tuxedo-control-center-bin/metadata.xml
new file mode 100644
index 000000000000..7b7524b9586f
--- /dev/null
+++ b/app-laptop/tuxedo-control-center-bin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.0.3.ebuild b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.0.3.ebuild
new file mode 100644
index 000000000000..02e798937cc9
--- /dev/null
+++ b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.0.3.ebuild
@@ -0,0 +1,78 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit rpm systemd xdg-utils
+
+MY_PN="${PN/-bin/}"
+
+DESCRIPTION="Tool to control performance, energy, fan and comfort settings on TUXEDO laptops"
+HOMEPAGE="https://github.com/tuxedocomputers/tuxedo-control-center"
+SRC_URI="https://rpm.tuxedocomputers.com/opensuse/15.1/x86_64/${MY_PN}_${PV}.rpm"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE=""
+
+RESTRICT="strip splitdebug"
+
+DEPEND="sys-power/tuxedo-cc-wmi"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}"
+
+src_prepare() {
+ default
+ rm -rf usr/lib
+ mkdir files
+}
+
+src_install() {
+ insinto /
+ doins -r usr opt
+ find . -type f -perm -a=x | while read f; do
+ chmod 0755 "${D}/${f}"
+ done
+
+ dosym ../../opt/tuxedo-control-center/tuxedo-control-center /usr/bin/tuxedo-control-center
+
+ insinto /usr/share/dbus-1/system.d/
+ doins opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/com.tuxedocomputers.tccd.conf
+
+ insinto /usr/share/polkit-1/actions
+ doins opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/de.tuxedocomputers.tcc.policy
+
+ systemd_dounit opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd.service
+ systemd_dounit opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd-sleep.service
+}
+
+pkg_config() {
+ ebegin "Reloading systemd"
+ systemctl daemon-reload
+ eend $?
+ ebegin "Enabling and starting tccd.service"
+ systemctl enable --now tccd
+ eend $?
+ ebegin "Enabling and starting tccd-sleep.service"
+ systemctl enable --now tccd-sleep
+ eend $?
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ elog
+ elog "You need to enable tccd and tccd-sleep service before running tuxedo-control-center"
+ elog
+ elog "For your convenience you may just call:"
+ elog " emerge --config =${P}"
+ elog
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+}