summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Behrendt2018-12-31 16:15:56 +0100
committerMarcus Behrendt2018-12-31 16:15:56 +0100
commitbf194b3ddf75d8354f4a4b15b43c929cd1076166 (patch)
treebc6908d64c1d1a2b78b3a3c8b57769dfd59b1eb7
parent72b619bef9c837adbbeaefa816e60f8f66492b53 (diff)
downloadaur-bf194b3ddf75d8354f4a4b15b43c929cd1076166.tar.gz
add optdepends
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5b3818e6e547..490cd2d909a3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = plasma5-applets-plasma-pstate
pkgdesc = Intel P-state and CPUFreq Manager Widget
pkgver = 1.0.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/jsalatas/plasma-pstate
arch = any
license = GPL v2
depends = plasma-workspace
+ optdepends = libsmbios: Dell's Thermal Management Feature
+ optdepends = x86_energy_perf_policy: If your processor doesn't support EPP (ie older generations without HWP)
source = https://github.com/jsalatas/plasma-pstate/archive/1.0.2.tar.gz
sha256sums = 76a1a8e31707cb62915ad0bd15faea680896cc06386d0a626da40ffcc21be9cf
diff --git a/PKGBUILD b/PKGBUILD
index 53c22d948d67..c020d5f3e805 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,19 @@
_applet_name=plasma-pstate
pkgname=plasma5-applets-${_applet_name}
pkgver=1.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="Intel P-state and CPUFreq Manager Widget"
url="https://github.com/jsalatas/${_applet_name}"
arch=('any')
license=('GPL v2')
depends=('plasma-workspace')
+optdepends=(
+ "libsmbios: Dell's Thermal Management Feature"
+ "x86_energy_perf_policy: If your processor doesn't support EPP (ie older generations without HWP)"
+)
source=("https://github.com/jsalatas/${_applet_name}/archive/${pkgver}.tar.gz")
sha256sums=('76a1a8e31707cb62915ad0bd15faea680896cc06386d0a626da40ffcc21be9cf')
-
package() {
cd "${srcdir}/${_applet_name}-${pkgver}"
@@ -28,7 +31,6 @@ package() {
chmod 400 "${_sudoers_dir}/99-plasma-pstate"
}
-
# SUDOERS_FILE="99-plasma-pstate"
#
# cp -R ${SUDOERS_FILE} /etc/sudoers.d/