diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rwxr-xr-x | phc-intel.sh | 7 |
3 files changed, 19 insertions, 7 deletions
@@ -1,7 +1,8 @@ pkgbase = phc-intel-scripts pkgdesc = Helper and init scripts for phc-intel, a frequency driver for Intel CPUs with undervolting feature. - pkgver = 0.3 - pkgrel = 6 + pkgver = 0.4.0 + pkgrel = 1 + epoch = 0 url = https://gitlab.com/linux-phc/phc-intel arch = any groups = linux-phc @@ -16,7 +17,7 @@ pkgbase = phc-intel-scripts source = phc-intel.systemd source = phc-intel-scripts.install sha256sums = ce08a5a4107be1d5723f1f169d515e67b6c77893f3994fc2d0d2ccf611307ed3 - sha256sums = b3144438cc796b96515508ebbbb22f854fcd36a3af31872da090af85f4f6d441 + sha256sums = d8520df3d25680574899ad0688d8043e4798ade799eb36572fca5abd7b59ed9a sha256sums = 3f965edca571e5a4d2dd60939b252e15062b440ce6eb87021dc3170682eff0d7 sha256sums = 0217a76958e2aba747c89bfd3bef16dcd8377770014896ab749faf16c05a2e53 sha256sums = 66be32665dd8e3c153ce512678d3af3cbf24f36829556590736e0c21baf82d28 @@ -11,8 +11,9 @@ groups=( 'linux-phc' 'phc-intel' ) -pkgver=0.3 -pkgrel=6 +epoch=0 +pkgver=0.4.0 +pkgrel=1 pkgdesc="Helper and init scripts for phc-intel, a frequency driver for Intel CPUs with undervolting feature." url="https://gitlab.com/linux-phc/phc-intel" arch=('any') @@ -30,7 +31,7 @@ source=( ) sha256sums=( 'ce08a5a4107be1d5723f1f169d515e67b6c77893f3994fc2d0d2ccf611307ed3' # phc-intel.conf.default - 'b3144438cc796b96515508ebbbb22f854fcd36a3af31872da090af85f4f6d441' # phc-intel.sh + 'd8520df3d25680574899ad0688d8043e4798ade799eb36572fca5abd7b59ed9a' # phc-intel.sh '3f965edca571e5a4d2dd60939b252e15062b440ce6eb87021dc3170682eff0d7' # phc-intel.sleep.pm-utils '0217a76958e2aba747c89bfd3bef16dcd8377770014896ab749faf16c05a2e53' # phc-intel.sleep.systemd '66be32665dd8e3c153ce512678d3af3cbf24f36829556590736e0c21baf82d28' # phc-intel.openrc @@ -39,6 +40,11 @@ sha256sums=( '3d7b7bd26e3bbd93eac8098fe8d688eecd7697fec345ef829b957680e0b4a360' # phc-intel-scripts.install ) +pkgver() { + cd "${srcdir}" + ./phc-intel.sh --version +} + package_phc-intel-scripts() { pkgdesc="Helper scripts for phc-intel, a frequency driver for Intel CPUs with undervolting feature." install='phc-intel-scripts.install' diff --git a/phc-intel.sh b/phc-intel.sh index 01236845c348..a62ad5839c56 100755 --- a/phc-intel.sh +++ b/phc-intel.sh @@ -2,6 +2,7 @@ ## This file is licensed under the GNU General Public License, version 2. +VERSION=0.4.0 _conf='/etc/default/phc-intel' msg() { @@ -90,8 +91,12 @@ case "$1" in "$0" stop ;; + --version) + printf '%s\n' "${VERSION}" + ;; + *) - echo "usage: $0 {start|stop|status|set|force-set|reset}" + echo "usage: $0 {start|stop|status|set|force-set|reset|--version}" ;; esac |