add PKGBUILD
This commit is contained in:
34
package/PKGBUILD
Normal file
34
package/PKGBUILD
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
pkgname=throttled
|
||||||
|
pkgver=0.6
|
||||||
|
pkgrel=4
|
||||||
|
pkgdesc="Workaround for Intel throttling issues in Linux."
|
||||||
|
arch=('any')
|
||||||
|
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')
|
||||||
|
backup=('etc/lenovo_fix.conf')
|
||||||
|
source=("git+https://github.com/Hyper-KVM/throttled.git#branch=openrc")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
#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 *.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 openrc/lenovo_fix "$pkgdir/etc/init.d/lenovo_fix"
|
||||||
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user