arch-packages/tuned/PKGBUILD

62 lines
2.1 KiB
Text
Raw Normal View History

2020-06-26 16:11:15 +02:00
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: Iwan Timmer <irtimmer@gmail.com>
2016-01-26 13:06:42 +01:00
# Contributor: Timothée Ravier <tim at siosm dot fr>
# Contributor: Tom <reztho at archlinux dot org>
2015-06-09 12:18:12 +02:00
pkgbase=tuned
pkgname=("${pkgbase}" "${pkgbase}-ppd")
pkgver=2.22.1
pkgrel=2
2015-06-09 12:18:12 +02:00
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
arch=('any')
url="https://github.com/redhat-performance/${pkgbase}"
2015-06-09 12:18:12 +02:00
license=('GPL')
2021-07-31 17:58:02 +02:00
depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj' 'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf' 'python-pyudev')
makedepends=('desktop-file-utils')
options=('!emptydirs')
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
sha512sums=('160b1cab5477d84a0da89f584fe646b32162527a138d9b5957799c5f26598b98449733040710133a1c5bdd5588eee72549131ff163e777a105fc24e92edc6d8f')
2015-06-09 12:18:12 +02:00
prepare() {
cd "${pkgbase}-${pkgver}"
mv libexec lib
sed -i 's/libexec/lib/g' Makefile
sed -i 's/sbin/bin/g' Makefile
sed -i 's/install-ppd: install$/install-ppd: install-dirs/' Makefile
}
package_tuned() {
optdepends=('virt-what: virtual machine detection'
'systemtap: detailed system monitoring'
'tuned-ppd: power-profiles-daemon api translation')
backup=('etc/tuned/active_profile'
'etc/tuned/bootcmdline'
'etc/tuned/cpu-partitioning-powersave-variables.conf'
'etc/tuned/cpu-partitioning-variables.conf'
'etc/tuned/post_loaded_profile'
'etc/tuned/realtime-variables.conf'
'etc/tuned/realtime-virtual-guest-variables.conf'
'etc/tuned/realtime-virtual-host-variables.conf'
'etc/tuned/tuned-main.conf')
install="${pkgbase}.install"
2015-06-09 12:18:12 +02:00
cd "${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
2015-06-09 12:18:12 +02:00
2022-08-19 23:13:11 +02:00
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
}
package_tuned-ppd() {
pkgdesc='Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)'
depends=('tuned')
conflicts=('power-profiles-daemon')
backup=('etc/tuned/ppd.conf')
cd "${pkgbase}-${pkgver}"
2022-07-04 17:12:47 +02:00
make DESTDIR="${pkgdir}" install-ppd
2015-06-09 12:18:12 +02:00
}