[arch-commits] Commit in throttled/repos (community-x86_64 community-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jul 30 04:27:53 UTC 2019
Date: Tuesday, July 30, 2019 @ 04:27:53
Author: felixonmars
Revision: 494906
archrelease: copy trunk to community-x86_64
Added:
throttled/repos/community-x86_64/
throttled/repos/community-x86_64/PKGBUILD
(from rev 494905, throttled/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: throttled/repos/community-x86_64/PKGBUILD (from rev 494905, throttled/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-07-30 04:27:53 UTC (rev 494906)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Kenneth Endfinger <kaendfinger at gmail.com>
+
+pkgname=throttled
+pkgver=0.6
+pkgrel=2
+pkgdesc="Workaround for Intel throttling issues in Linux."
+arch=('x86_64')
+url="https://github.com/erpalma/throttled"
+license=('MIT')
+depends=('python-dbus' 'python-psutil' 'python-gobject')
+conflicts=('lenovo-throttling-fix-git' 'lenovo-throttling-fix')
+replaces=('lenovo-throttling-fix-git' 'lenovo-throttling-fix')
+backup=('etc/lenovo_fix.conf')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/erpalma/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('93d11b78d35b99ce345e41291f0268e4c21d0ccb2a80922839e51ec2fe3ae0c1')
+
+prepare() {
+ sed -i "s|ExecStart=.*|ExecStart=/usr/lib/$pkgname/lenovo_fix.py|" $pkgname-$pkgver/systemd/lenovo_fix.service
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python -m compileall lenovo_fix.py
+}
+
+package() {
+ cd throttled-$pkgver
+ install -Dm644 etc/lenovo_fix.conf "$pkgdir"/etc/lenovo_fix.conf
+ install -Dm644 systemd/lenovo_fix.service "$pkgdir"/usr/lib/systemd/system/lenovo_fix.service
+ install -Dm755 lenovo_fix.py "$pkgdir"/usr/lib/$pkgname/lenovo_fix.py
+ install -Dm755 mmio.py "$pkgdir"/usr/lib/$pkgname/mmio.py
+ cp -a __pycache__ "$pkgdir"/usr/lib/$pkgname/
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list