summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-08 00:08:16 -0800
committerroot <root@rshg054.dnsready.net>2013-02-08 00:08:16 -0800
commit7c92c5fcfb5653f63243842299e413672653d1ad (patch)
tree3487915cdf6e673c8a6dccfbd2a526e341550c87 /libre/linux-libre-tools/PKGBUILD
parent8e5a0a990a12a59cadb687cae22a1960fce1660b (diff)
Fri Feb 8 00:08:16 PST 2013
Diffstat (limited to 'libre/linux-libre-tools/PKGBUILD')
-rw-r--r--libre/linux-libre-tools/PKGBUILD39
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() {