summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-07 15:08:59 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-07 15:08:59 -0200
commitdd6dd5904aa155b105862bd2a920bcb201640af1 (patch)
tree783098872e3f28f4d990f95da9e67b449ec0a89f /libre/linux-libre-tools/PKGBUILD
parentf5cd0d10629a5b301acd8d496650bb57c4a293bf (diff)
linux-libre-tools-3.7-7: updating version
* add meta package for linux-libre-tools * add bash completion for bash * update to stable linux-libre 3.7.6
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() {