[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 30 04:27:38 UTC 2019


    Date: Tuesday, July 30, 2019 @ 04:27:37
  Author: felixonmars
Revision: 494905

addpkg: throttled 0.6-2

Added:
  throttled/
  throttled/repos/
  throttled/trunk/
  throttled/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Added: throttled/trunk/PKGBUILD
===================================================================
--- throttled/trunk/PKGBUILD	                        (rev 0)
+++ throttled/trunk/PKGBUILD	2019-07-30 04:27:37 UTC (rev 494905)
@@ -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