perf: fix paths.

Closes #5413.
Closes #5417.
This commit is contained in:
Christian Neukirchen 2016-12-25 16:08:15 +01:00
parent 4df678a841
commit fbd37c59ee

View file

@ -1,7 +1,7 @@
# Template file for 'linux-tools'
pkgname=linux-tools
version=4.1
revision=4
revision=5
build_style=meta
wrksrc="linux-${version}"
short_desc="Linux kernel tools meta-pkg"
@ -34,8 +34,7 @@ post_extract() {
do_build() {
cd ${wrksrc}/tools/perf
make ${makejobs} CC=$CC LD=$LD CFLAGS="$CFLAGS" EXTRA_CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
WERROR=0 DESTDIR=${DESTDIR}/usr \
perfexecdir='lib/perf' \
WERROR=0 DESTDIR=${DESTDIR} prefix=/usr lib=lib/perf \
NO_GTK2=1 \
PERF_VERSION=${version}_${revision} \
all man
@ -75,14 +74,13 @@ do_install() {
# perf
cd ${wrksrc}/tools/perf
make CC=$CC LD=$LD CFLAGS="$CFLAGS" EXTRA_CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
WERROR=0 DESTDIR=${DESTDIR}/usr \
perfexecdir='lib/perf' \
WERROR=0 DESTDIR=${DESTDIR} prefix=/usr lib=lib/perf \
NO_GTK2=1 \
PERF_VERSION=${version}_${revision} \
install install-man
# move completion in new directory
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/usr/etc/bash_completion.d/perf \
mv ${DESTDIR}/etc/bash_completion.d/perf \
${DESTDIR}/usr/share/bash-completion/completions
# usbip
@ -142,7 +140,7 @@ perf_package() {
pkg_install() {
vmove usr/bin/perf
vmove usr/bin/trace
vmove usr/lib/traceevent
vmove usr/lib/perf/traceevent
vmove usr/libexec/perf-core
vmove usr/share/bash-completion
vmove "usr/share/man/man1/perf*"