summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2023-07-15 17:14:42 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2023-07-16 01:29:09 -0400
commit1071529540c9961c34a8eed98deb4d547ee8b5b9 (patch)
treecd49b575d66905d9d4b05c08db7966770a3f8967 /pcr
parent2cf4d1b9f2320814deb65f5e51fb22cc12cd9df8 (diff)
[phc-intel]: rename to phc-intel-dkms - housekeeping changes (recipe upstream abandoned)
Diffstat (limited to 'pcr')
-rw-r--r--pcr/phc-intel-dkms/PKGBUILD65
-rw-r--r--pcr/phc-intel-dkms/dkms.conf.in (renamed from pcr/phc-intel/dkms.conf)2
-rw-r--r--pcr/phc-intel-dkms/phc-intel.default (renamed from pcr/phc-intel/phc-intel.default)0
-rw-r--r--pcr/phc-intel-dkms/phc-intel.install (renamed from pcr/phc-intel/phc-intel.install)0
-rw-r--r--pcr/phc-intel-dkms/phc-intel.sh (renamed from pcr/phc-intel/phc-intel.sh)0
-rw-r--r--pcr/phc-intel-dkms/phc-intel.sleep (renamed from pcr/phc-intel/phc-intel.sleep)0
-rw-r--r--pcr/phc-intel-dkms/phc-intel.system-sleep (renamed from pcr/phc-intel/phc-intel.system-sleep)0
-rw-r--r--pcr/phc-intel/PKGBUILD53
8 files changed, 66 insertions, 54 deletions
diff --git a/pcr/phc-intel-dkms/PKGBUILD b/pcr/phc-intel-dkms/PKGBUILD
new file mode 100644
index 000000000..2e747f801
--- /dev/null
+++ b/pcr/phc-intel-dkms/PKGBUILD
@@ -0,0 +1,65 @@
+# Contributor: adrien1018 <adrien.sf.wu[at]gmail[dot]com>
+# Contributor: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
+# Contributor: trapanator <trap[at]trapanator[dot]com>
+# Contributor: tomprogrammer <Thomas-Bahn[at]gmx[dot]net>
+# Maintainer: Wael Karram <wael@waelk.tech>
+
+
+# parabola changes and rationale:
+# - use VCS tag instead of arbitrary commit
+# - use upstream revision as $pkgver - upstream version is hyper-stable
+
+
+pkgname=phc-intel-dkms
+_upstream_name=phc-intel
+_upstream_ver=0.3.2
+_upstream_rev=rev45 # use tag revNN (see https://gitlab.com/linux-phc/phc-intel/-/tags)
+pkgver=$_upstream_ver.$_upstream_rev
+pkgrel=1
+pkgdesc="Frequency driver for Intel CPUs with undervolting feature"
+pkgdesc+=", (for Core/Core2 systems)"
+url="https://gitlab.com/linux-phc/phc-intel"
+arch=('x86_64' 'i686') # could be 'any'; but avoid publishing to non-x86 repos
+license=('GPL')
+depends=('dkms')
+replaces=('phc-intel')
+backup=('etc/default/phc-intel')
+source=("https://gitlab.com/linux-phc/phc-intel/-/archive/$_upstream_rev/$_upstream_name-$_upstream_rev.tar.gz"
+ dkms.conf.in
+ phc-intel.default
+ phc-intel.sh
+ phc-intel.sleep
+ phc-intel.system-sleep)
+sha256sums=('f27fa7dece7c3ca7c81d08500878cac803f412dc1d6e76a05621ab72c82dfa17'
+ '2a5a6df46556687125f2082bff2f98c5941ebe98928c491458348c1174622e04'
+ 'ce08a5a4107be1d5723f1f169d515e67b6c77893f3994fc2d0d2ccf611307ed3'
+ 'b526f3e8e66f6495531f13f2e6867d3a07b2ec7a7c3b8aa061f22be1cd6e770f'
+ '569b85988cb38380fec85c25688b76abc24a46601aa8f58eb24eaebf863eebef'
+ '2e17c90d7bfae8f5070e46388e95d443188eaa7beb5ffdd418a0da090f2e7557')
+
+
+prepare()
+{
+ # inject version into dkms.conf
+ sed "s|@VERSION@|$pkgver|" dkms.conf.in > dkms.conf
+
+ cd $_upstream_name-$_upstream_rev
+
+ # initialize upon load?
+ # TODO: what does this do?
+ sed -i 's|/sbin/modprobe phc-intel |&\&\& /usr/bin/phc-intel set |' phc-intel.modprobe
+}
+
+package()
+{
+ umask 022
+ install -Dm644 dkms.conf "$pkgdir/usr/src/phc-intel-$_upstream_ver/dkms.conf"
+ install -Dm644 phc-intel.default "$pkgdir/etc/default/phc-intel"
+ install -Dm755 phc-intel.sh "$pkgdir/usr/bin/phc-intel"
+ install -Dm755 phc-intel.sleep "$pkgdir/usr/lib/pm-utils/sleep.d/00phc-intel"
+ install -Dm755 phc-intel.system-sleep "$pkgdir/usr/lib/systemd/system-sleep/phc-intel"
+
+ cd $_upstream_name-$_upstream_rev
+ install -Dm644 phc-intel.modprobe "$pkgdir/usr/lib/modprobe.d/phc-intel.conf"
+ cp -R inc Makefile "$pkgdir/usr/src/phc-intel-$_upstream_ver/"
+}
diff --git a/pcr/phc-intel/dkms.conf b/pcr/phc-intel-dkms/dkms.conf.in
index db660379a..a97befb04 100644
--- a/pcr/phc-intel/dkms.conf
+++ b/pcr/phc-intel-dkms/dkms.conf.in
@@ -1,5 +1,5 @@
PACKAGE_NAME="phc-intel"
-PACKAGE_VERSION=0.3.2
+PACKAGE_VERSION=@VERSION@
AUTOINSTALL="yes"
BUILT_MODULE_NAME[0]="phc-intel"
diff --git a/pcr/phc-intel/phc-intel.default b/pcr/phc-intel-dkms/phc-intel.default
index 4e390e768..4e390e768 100644
--- a/pcr/phc-intel/phc-intel.default
+++ b/pcr/phc-intel-dkms/phc-intel.default
diff --git a/pcr/phc-intel/phc-intel.install b/pcr/phc-intel-dkms/phc-intel.install
index fb69a8b4a..fb69a8b4a 100644
--- a/pcr/phc-intel/phc-intel.install
+++ b/pcr/phc-intel-dkms/phc-intel.install
diff --git a/pcr/phc-intel/phc-intel.sh b/pcr/phc-intel-dkms/phc-intel.sh
index cce4bf96a..cce4bf96a 100644
--- a/pcr/phc-intel/phc-intel.sh
+++ b/pcr/phc-intel-dkms/phc-intel.sh
diff --git a/pcr/phc-intel/phc-intel.sleep b/pcr/phc-intel-dkms/phc-intel.sleep
index 342b81acf..342b81acf 100644
--- a/pcr/phc-intel/phc-intel.sleep
+++ b/pcr/phc-intel-dkms/phc-intel.sleep
diff --git a/pcr/phc-intel/phc-intel.system-sleep b/pcr/phc-intel-dkms/phc-intel.system-sleep
index c76ea6aaf..c76ea6aaf 100644
--- a/pcr/phc-intel/phc-intel.system-sleep
+++ b/pcr/phc-intel-dkms/phc-intel.system-sleep
diff --git a/pcr/phc-intel/PKGBUILD b/pcr/phc-intel/PKGBUILD
deleted file mode 100644
index b5046c373..000000000
--- a/pcr/phc-intel/PKGBUILD
+++ /dev/null
@@ -1,53 +0,0 @@
-# Maintainer (aur): adrien1018 <adrien.sf.wu[at]gmail[dot]com>
-# Contributor: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
-# Contributor: trapanator <trap[at]trapanator[dot]com>
-# Contributor: tomprogrammer <Thomas-Bahn[at]gmx[dot]net>
-# Maintainer: Wael Karram <wael@waelk.tech>
-
-
-# parabola changes and rationale:
-# - use versioned VCS tag instead of arbitrary commit
-# - use version tag as $pkgver
-
-
-pkgname=phc-intel
-_phcver=0.3.2
-_upstream_ver=rev45
-pkgver=$_phcver.$_upstream_ver
-pkgrel=1
-pkgdesc="Frequency driver for Intel CPUs with undervolting feature"
-pkgdesc+=", (for Core/Core2 systems)"
-url="https://gitlab.com/linux-phc/phc-intel"
-arch=('any')
-arch=('x86_64' 'i686') # avoid publishing to non-x86 repos
-license=('GPL')
-depends=('dkms')
-# provides=('linux-phc') # useless - no arch, parabola, nor AUR package refers to this
-backup=('etc/default/phc-intel')
-_commit_hash=$_upstream_ver # use tag revNN (see https://gitlab.com/linux-phc/phc-intel/-/tags)
-source=("https://gitlab.com/linux-phc/phc-intel/-/archive/$_commit_hash/phc-intel-$_commit_hash.tar.gz"
- phc-intel.{default,sh,sleep,system-sleep} dkms.conf)
-sha256sums=('f27fa7dece7c3ca7c81d08500878cac803f412dc1d6e76a05621ab72c82dfa17'
- 'ce08a5a4107be1d5723f1f169d515e67b6c77893f3994fc2d0d2ccf611307ed3'
- 'b526f3e8e66f6495531f13f2e6867d3a07b2ec7a7c3b8aa061f22be1cd6e770f'
- '569b85988cb38380fec85c25688b76abc24a46601aa8f58eb24eaebf863eebef'
- '2e17c90d7bfae8f5070e46388e95d443188eaa7beb5ffdd418a0da090f2e7557'
- '7b44882a96eeb7c79dbb7fe5b1ff8cded68c2b6a374c95bdc5e08c414cfd3549')
-
-prepare() {
- cd $pkgname-$_commit_hash
- sed -i 's,/sbin/modprobe phc-intel |,/sbin/modprobe phc-intel \&\& /usr/bin/phc-intel set |,' phc-intel.modprobe
-}
-
-package() {
- umask 022
- install -Dm644 dkms.conf "$pkgdir/usr/src/phc-intel-$_phcver/dkms.conf"
- install -Dm644 phc-intel.default "$pkgdir/etc/default/phc-intel"
- install -Dm755 phc-intel.sh "$pkgdir/usr/bin/phc-intel"
- install -Dm755 phc-intel.sleep "$pkgdir/usr/lib/pm-utils/sleep.d/00phc-intel"
- install -Dm755 phc-intel.system-sleep "$pkgdir/usr/lib/systemd/system-sleep/phc-intel"
-
- cd $pkgname-$_commit_hash
- install -Dm644 phc-intel.modprobe "$pkgdir/usr/lib/modprobe.d/phc-intel.conf"
- cp -R inc Makefile "$pkgdir/usr/src/phc-intel-$_phcver/"
-}