aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@atmark-techno.com>2022-04-24 15:25:20 +0900
committerMilan P. Stanić <mps@arvanta.net>2022-05-13 08:59:21 +0000
commitd52fbeef7c8ca4b6d218582e548785b1ef097f1a (patch)
tree98cac017a70b2d81f2416c1a82f9dc9762055668
parenta2863acdeca23cd31816f8df698da29e2d3a237c (diff)
downloadaports-d52fbeef7c8ca4b6d218582e548785b1ef097f1a.tar.gz
aports-d52fbeef7c8ca4b6d218582e548785b1ef097f1a.tar.bz2
aports-d52fbeef7c8ca4b6d218582e548785b1ef097f1a.tar.xz
community/linux-tools: move perf files in perf subpackage
/usr/lib/perf/examples and /usr/share/perf-core were installed in linux-tools main package instead of perf's subpackage. (/usr/share/perf-core also doesn't seem to exist on all arches) Perhaps it makes more sense to not install these at all instead?
-rw-r--r--community/linux-tools/APKBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/community/linux-tools/APKBUILD b/community/linux-tools/APKBUILD
index 271c10b5f5..90fa0ac628 100644
--- a/community/linux-tools/APKBUILD
+++ b/community/linux-tools/APKBUILD
@@ -5,7 +5,7 @@
pkgname=linux-tools
pkgver=5.15.35
_kernver=${pkgver%.*}
-pkgrel=0
+pkgrel=1
pkgdesc="Linux kernel tools meta package"
url="https://www.kernel.org/"
arch="all"
@@ -129,8 +129,16 @@ perf() {
"$pkgdir"/usr/bin/trace \
"$subpkgdir"/usr/bin
mv "$pkgdir"/usr/lib/traceevent \
+ "$pkgdir"/usr/lib/perf \
"$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/libexec "$subpkgdir"/usr/
+
+ # /usr/share/perf-core is apprently not installed on all arches
+ if [ -e "$pkgdir"/usr/share/perf-core ]; then
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/perf-core \
+ "$subpkgdir"/usr/share/
+ fi
}
perf_bashcomp() {