diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-02-14 12:13:51 -0200 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-02-14 12:13:51 -0200 |
commit | f67b20d8da80cc120dcfea0d3405de74a8e5f84a (patch) | |
tree | 2d57e7cdc4772adc20017980fda13f1267cfc127 /libre/linux-libre-tools | |
parent | 327433a2a7ae50151dcf0e6f6840a3eb5c065808 (diff) | |
parent | 9e33e61c00e3da5565b47e16b6618ab98c9ea38f (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/linux-libre-tools')
-rw-r--r-- | libre/linux-libre-tools/PKGBUILD | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD index d3c01f28c..74216fe4c 100644 --- a/libre/linux-libre-tools/PKGBUILD +++ b/libre/linux-libre-tools/PKGBUILD @@ -3,12 +3,17 @@ # Maintainer (Parabola): André Silva <emulatorman@lavabit.com> pkgbase=linux-libre-tools -pkgname=('libtraceevent-libre' 'perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre' 'usbip-libre') +pkgname=('linux-libre-tools-meta' + 'libtraceevent-libre' + 'perf-libre' + 'cpupower-libre' + 'x86_energy_perf_policy-libre' + 'usbip-libre') _basekernel=3.7 -#_sublevel=1 -#pkgver=${_basekernel}.${_sublevel} -pkgver=${_basekernel} -pkgrel=5 +_sublevel=6 +_pkgver=$_basekernel.$_sublevel +pkgver=$_basekernel +pkgrel=7 license=('GPL2') arch=('i686' 'x86_64' 'mips64el') url='http://linux-libre.fsfla.org/' @@ -23,13 +28,14 @@ makedepends+=('pciutils') # usbip-libre deps makedepends+=('glib2' 'sysfsutils') groups=("$pkgbase") -source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-gnu/linux-libre-${_basekernel}-gnu.tar.xz" - #"http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-gnu/patch-${_basekernel}-gnu-${pkgver}-gnu.xz" +source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$_basekernel-gnu/linux-libre-$_basekernel-gnu.tar.xz" + "http://linux-libre.fsfla.org/pub/linux-libre/releases/$_pkgver-gnu/patch-$_basekernel-gnu-$_pkgver-gnu.xz" 'cpupower.default' 'cpupower.systemd' 'cpupower.service' 'usbipd.service') md5sums=('06bf9601d859531e7378eb43d4ca7dd3' + '90b2c4b9a05b108219bd44ac4804db84' '56883c159381ba89e50ab8ea65efec77' '7e0710c2f31c1eb1e1417a7972e676b1' '2450e8ff41b30eb58d43b5fffbfde1f4' @@ -37,9 +43,11 @@ md5sums=('06bf9601d859531e7378eb43d4ca7dd3' build() { # apply stable patching set - if [ "${_basekernel}" != "${pkgver}" ]; then + if (( NOEXTRACT == 0 )) && [[ -e "$srcdir"/patch-$_basekernel-gnu-$_pkgver-gnu ]]; then msg2 'Applying stable patch set' - patch -Np1 -i "${srcdir}/patch-${_basekernel}-gnu-${pkgver}-gnu" + cd linux-$pkgver + patch -Np1 -i "$srcdir"/patch-$_basekernel-gnu-$_pkgver-gnu + cd .. fi msg2 'Build libtraceevent-libre' @@ -81,6 +89,15 @@ build() { popd } +package_linux-libre-tools-meta() { + pkgdesc='Linux kernel tools meta package' + groups=() + depends=('libtraceevent-libre' 'perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre' 'usbip-libre') + replaces=('linux-tools-meta') + conflicts=('linux-tools-meta') + provides=("linux-tools-meta=$pkgver") +} + package_libtraceevent-libre() { pkgdesc='Linux kernel trace event library' depends=('glibc') @@ -109,6 +126,10 @@ package_perf-libre() { NO_GTK2=1 \ PERF_VERSION=$pkgver-$pkgrel \ install install-man + # move completion in new directory + cd "$pkgdir" + install -Dm644 usr/etc/bash_completion.d/perf usr/share/bash-completion/perf + rm -r usr/etc } package_cpupower-libre() { |