From eea98ae3fa55de9797317fa72653952f257432cd Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 15 Dec 2012 00:53:22 -0200 Subject: linux-libre-tools-3.7-2: updating version --- libre/linux-libre-tools/PKGBUILD | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'libre/linux-libre-tools') 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 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") -- cgit v1.2.3