diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-06-29 00:13:39 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-06-29 00:13:39 -0300 |
commit | de04d57275d42b0ba09451e10f059fb8dc9546be (patch) | |
tree | 7582ca3b19720a18be5c128958de005e22341fbb /libre/linux-libre-tools | |
parent | e1f98f19f068ebaf8e267d4ffd6440031e8b9ce6 (diff) |
linux-libre-tools-3.4-3: updating release with new changes
Diffstat (limited to 'libre/linux-libre-tools')
-rw-r--r-- | libre/linux-libre-tools/PKGBUILD | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD index b7dc50f94..083cce961 100644 --- a/libre/linux-libre-tools/PKGBUILD +++ b/libre/linux-libre-tools/PKGBUILD @@ -1,15 +1,15 @@ # $Id$ # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> -# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy> +# Maintainer (Parabola): André Silva <emulatorman@lavabit.com> pkgbase=linux-libre-tools -_pkgname=('perf' 'cpupower') -pkgname=('perf-libre' 'cpupower-libre') +_pkgname=('perf' 'cpupower' 'x86_energy_perf_policy') +pkgname=('perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre') _basekernel=3.4 #_sublevel=1 #pkgver=${_basekernel}.${_sublevel} pkgver=${_basekernel} -pkgrel=2 +pkgrel=3 license=('GPL2') arch=('i686' 'x86_64' 'mips64el') url='http://linux-libre.fsfla.org/' @@ -34,7 +34,6 @@ build() { patch -Np1 -i "${srcdir}/patch-${_basekernel}-gnu-${pkgver}-gnu" fi - cd ${srcdir} msg2 'Build perf' pushd linux-$pkgver/tools/perf make \ @@ -47,10 +46,16 @@ build() { popd msg2 'Build cpupower' - cd linux-$pkgver/tools/power/cpupower + pushd linux-$pkgver/tools/power/cpupower # we cannot use --as-needed LDFLAGS=${LDFLAGS:+"$LDFLAGS,--no-as-needed"} make VERSION=$pkgver-$pkgrel + popd + + msg2 'Build x86_energy_perf_policy' + pushd linux-$pkgver/tools/power/x86/x86_energy_perf_policy + make + popd } package_perf-libre() { @@ -91,4 +96,15 @@ package_cpupower-libre() { install -D -m 644 cpupower.service "$pkgdir/usr/lib/systemd/system/cpupower.service" } +package_x86_energy_perf_policy-libre() { + pkgdesc='Read or write MSR_IA32_ENERGY_PERF_BIAS' + replaces=('x86_energy_perf_policy') + conflicts=('x86_energy_perf_policy') + provides=("x86_energy_perf_policy=$pkgver") + + cd linux-$pkgver/tools/power/x86/x86_energy_perf_policy + install -D -m 755 x86_energy_perf_policy "$pkgdir/usr/bin/x86_energy_perf_policy" + install -D -m 644 x86_energy_perf_policy.8 "$pkgdir/usr/share/man/man8/x86_energy_perf_policy.8" +} + # vim:set ts=2 sw=2 ft=sh et: |