summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTroy Engel2019-07-27 09:52:45 -0500
committerTroy Engel2019-07-27 09:52:45 -0500
commit5f78a41eb0711ca1660d1571dddff4c7115d1461 (patch)
tree89724812c53f9a7a5c8f5e52d0f3a9e3954d509a
downloadaur-5f78a41eb0711ca1660d1571dddff4c7115d1461.tar.gz
first release of kernelshark-git package
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD51
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f3beaff98e4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = kernelshark-git
+ pkgdesc = GUI frontend for trace-cmd based Linux kernel Ftrace captures
+ pkgver = 1.0.r0.gf97e28a
+ pkgrel = 1
+ url = https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
+ arch = x86_64
+ arch = aarch64
+ license = GPL2
+ makedepends = asciidoc
+ makedepends = extra-cmake-modules
+ makedepends = doxygen
+ makedepends = json-c
+ makedepends = libxmu
+ makedepends = swig
+ depends = trace-cmd
+ depends = qt5-base
+ depends = freeglut
+ depends = glu
+ provides = kernelshark
+ conflicts = kernelshark
+ source = git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
+ sha256sums = SKIP
+
+pkgname = kernelshark-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bcb451f3d43
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Current Maintainer: Troy Engel <troyengel+arch@gmail.com>
+# Maintainer: Nikolay Amiantov <nikoamia@gmail.com>
+# Maintainer: Netanel Shine <netanel at archlinux.org.il>
+
+pkgname=kernelshark-git
+pkgver=1.0.r0.gf97e28a
+pkgrel=1
+pkgdesc="GUI frontend for trace-cmd based Linux kernel Ftrace captures"
+arch=('x86_64' 'aarch64')
+url="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git"
+license=('GPL2')
+depends=('trace-cmd' 'qt5-base' 'freeglut' 'glu')
+makedepends=('asciidoc' 'extra-cmake-modules' 'doxygen' 'json-c' 'libxmu'
+ 'swig')
+provides=('kernelshark')
+conflicts=('kernelshark')
+source=(
+ "git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git"
+)
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/trace-cmd"
+
+ # trace-cmd tags are internal to the project, skip them
+ git describe --long --exclude "trace-cmd" | \
+ sed -r 's/^kernelshark.v//; s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/trace-cmd"
+
+ # pkg-config --cflags --libs $PYTHON_VERS
+ make BUILD_TYPE=Release prefix="/usr" DESTDIR="$pkgdir" \
+ gui doc
+}
+
+package() {
+ cd "${srcdir}/trace-cmd"
+
+ # pkg-config --cflags --libs $PYTHON_VERS
+ make BUILD_TYPE=Release prefix="/usr" DESTDIR="$pkgdir" \
+ install_gui install_doc
+
+ # remove trace-cmd artifacts from this package
+ rm -rf "${pkgdir}/etc"
+ rm -rf "${pkgdir}/usr/lib/trace-cmd"
+ rm -rf "${pkgdir}/usr/share/man/man5"
+ rm -f "${pkgdir}/usr/bin/trace-cmd"
+ rm -f "${pkgdir}/usr/share/man/man1/trace-cmd"*
+}