[arch-commits] Commit in kernelshark/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sat Nov 6 01:04:52 UTC 2021


    Date: Saturday, November 6, 2021 @ 01:04:51
  Author: dvzrv
Revision: 1037384

upgpkg: kernelshark 2.0.2-1: Upgrade to 2.0.2.

Replace the use of FreeSans with ttf-fira-sans.
Use custom cmake variables to have things end up where they should.
Add all current dependencies and add all available sodeps in package().

Modified:
  kernelshark/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-06 01:04:50 UTC (rev 1037383)
+++ PKGBUILD	2021-11-06 01:04:51 UTC (rev 1037384)
@@ -1,28 +1,33 @@
 # Maintainer: David Runge <dvzrv at archlinux.org>
 
 pkgname=kernelshark
-pkgver=1.3
+pkgver=2.0.2
 pkgrel=1
 pkgdesc="GUI frontend for trace-cmd based Linux kernel Ftrace captures"
 arch=('x86_64')
 url="https://kernelshark.org/"
 license=('GPL2')
-depends=('freeglut' 'gcc-libs' 'glibc' 'glu' 'libglvnd' 'qt5-base' 'trace-cmd')
-makedepends=('cmake' 'json-c')
-provides=('libkshark.so' 'libkshark-plot.so' 'libkshark-gui.so')
-source=("https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/${pkgname}-v${pkgver}.tar.gz")
-sha512sums=('a1f646ef4f250af7fc285c042f364eca0cdd7e6aa7cde111d1428c33e5af58181e2308a543e111614163201c89112b67ffcf9f305e3d2d81cf4398efe8530c1d')
-b2sums=('62291ee9ff2eb0070414d4604703aa6ee1f9140b720d4f1df45f937d03222f92ab79b63b58f25b8fb7787572ac77f5ab0cf951f6b44a5b478cf97a3bd0f5f0fd')
+depends=(freeglut gcc-libs glibc glu libglvnd qt5-base)
+makedepends=(boost cmake json-c libtracefs libtraceevent trace-cmd ttf-fira-sans)
+provides=(libkshark.so libkshark-plot.so libkshark-gui.so)
+source=("${pkgname}-${pkgver}.tar.gz::https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/kernel-shark-${pkgname}-v${pkgver}.tar.gz")
+sha512sums=('3e293dbc7802f1a9245f0b9081cfabb7845428239aafe8e552038b29c49d6693c970f1e49bf33ef87c23bb9e047b04f1014d3716cbd71859a1e12a54ff6a5ca5')
+b2sums=('09970743e6cc125c63f70a4967ad63db0f71b7006c1fb9e4152393f338638679a2d1655c2b1859bfd9ef317e2fb705aa85e1d087fa45baf058037bcf79cfa177')
 
 prepare() {
-  mv -v "${pkgname}-v${pkgver}" "${pkgname}-${pkgver}"
+  mv -v "kernel-shark-${pkgname}-v${pkgver}" "${pkgname}-${pkgver}"
+  cd "$pkgname-$pkgver"
+
+  # replace FreeSans with ttf-fira-sans
+  sed -e 's/FreeSans/FiraSans-Regular/g' \
+      -i CMakeLists.txt
 }
 
 build() {
   cd "$pkgname-$pkgver"
-  make prefix='/usr' V=1
-  cd "kernel-shark"
-  cmake -D_INSTALL_PREFIX=/usr \
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -D_INSTALL_PREFIX=/usr \
+        -D_LIBDIR=/usr/lib \
         -DCMAKE_BUILD_TYPE='None' \
         -Wno-dev \
         -B build \
@@ -31,7 +36,7 @@
 }
 
 package() {
-  depends+=('libjson-c.so')
+  depends+=(libjson-c.so libtracefs.so libtracecmd.so libtraceevent.so)
   cd "$pkgname-$pkgver"
-  make DESTDIR="${pkgdir}" prefix='/usr' VERBOSE=1 -C kernel-shark/build install
+  make DESTDIR="${pkgdir}" prefix='/usr' VERBOSE=1 -C build install
 }



More information about the arch-commits mailing list