summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-12-15 00:53:22 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-12-15 00:53:22 -0200
commiteea98ae3fa55de9797317fa72653952f257432cd (patch)
tree360317d7996fbad66055f9f7d9b236f56661289b /libre/linux-libre-tools/PKGBUILD
parent7e70a6b31620d6d8cee25f83740af3e37a5efd94 (diff)
linux-libre-tools-3.7-2: updating version
Diffstat (limited to 'libre/linux-libre-tools/PKGBUILD')
-rwxr-xr-xlibre/linux-libre-tools/PKGBUILD30
1 files changed, 24 insertions, 6 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD
index d3154ac86..68b75c631 100755
--- a/libre/linux-libre-tools/PKGBUILD
+++ b/libre/linux-libre-tools/PKGBUILD
@@ -3,12 +3,12 @@
# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
pkgbase=linux-libre-tools
-pkgname=('perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre' 'usbip-libre')
-_basekernel=3.6
+pkgname=('libtraceevent-libre' 'perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre' 'usbip-libre')
+_basekernel=3.7
#_sublevel=1
#pkgver=${_basekernel}.${_sublevel}
pkgver=${_basekernel}
-pkgrel=1
+pkgrel=2
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
url='http://linux-libre.fsfla.org/'
@@ -17,7 +17,7 @@ options=('!strip')
# kernel source deps
makedepends=('asciidoc' 'xmlto')
# perf-libre deps
-makedepends+=('perl' 'python2' 'libnewt' 'elfutils')
+makedepends+=('perl' 'python2' 'libnewt' 'elfutils' 'audit' 'libunwind')
# cpupower-libre deps
makedepends+=('pciutils')
# usbip-libre deps
@@ -32,7 +32,7 @@ source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-gn
'usbipd.conf'
'usbipd.rc'
'usbipd.service')
-md5sums=('a2312edd0265b5b07bd4b50afae2b380'
+md5sums=('06bf9601d859531e7378eb43d4ca7dd3'
'56883c159381ba89e50ab8ea65efec77'
'5fc1fcda4cef93f16e752b1931db23e3'
'c0d17b5295fe964623c772a2dd981771'
@@ -48,6 +48,11 @@ build() {
patch -Np1 -i "${srcdir}/patch-${_basekernel}-gnu-${pkgver}-gnu"
fi
+ msg2 'Build libtraceevent-libre'
+ pushd linux-$pkgver/tools/lib/traceevent
+ make
+ popd
+
msg2 'Build perf-libre'
pushd linux-$pkgver/tools/perf
make \
@@ -74,15 +79,28 @@ build() {
msg2 'Build usbip-libre'
pushd linux-$pkgver/drivers/staging/usbip/userspace
+ # fix missing man page
+ sed -i 's/usbip_bind_driver.8//' Makefile.am
./autogen.sh
./configure --prefix=/usr
make
popd
}
+package_libtraceevent-libre() {
+ pkgdesc='Linux-libre kernel trace event library'
+ replaces=('libtraceevent')
+ conflicts=('libtraceevent')
+ provides=("libtraceevent=$pkgver")
+
+ cd linux-$pkgver/tools/lib/traceevent
+ install -dm 755 "$pkgdir/usr/lib"
+ install -m 644 libtraceevent.a libtraceevent.so "$pkgdir/usr/lib"
+}
+
package_perf-libre() {
pkgdesc='Linux-libre kernel performance auditing tool'
- depends=('perl' 'python2' 'libnewt' 'elfutils')
+ depends=('perl' 'python2' 'libnewt' 'elfutils' 'audit' 'libunwind')
replaces=('perf')
conflicts=('perf')
provides=("perf=$pkgver")