[arch-commits] Commit in sysprof/repos (2 files)
Frederik Schwan
freswa at gemini.archlinux.org
Mon Aug 1 22:24:04 UTC 2022
Date: Monday, August 1, 2022 @ 22:24:04
Author: freswa
Revision: 451855
archrelease: copy trunk to community-staging-x86_64
Added:
sysprof/repos/community-staging-x86_64/
sysprof/repos/community-staging-x86_64/PKGBUILD
(from rev 451854, sysprof/trunk/PKGBUILD)
----------+
PKGBUILD | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
Copied: sysprof/repos/community-staging-x86_64/PKGBUILD (from rev 451854, sysprof/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-08-01 22:24:04 UTC (rev 451855)
@@ -0,0 +1,78 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy.carrier at aur.archlinux.org>
+# Contributor: Eric Belanger <belanger at astro.umontreal.ca>
+# Contributor: aeolist <aeolist at hotmail.com>
+# Contributor: Gabriel Rauter <rauter.gabriel at gmail.com>
+
+pkgbase=sysprof
+pkgname=(sysprof libsysprof-capture)
+pkgver=3.44.0
+pkgrel=2
+pkgdesc="Kernel based performance profiler"
+url="https://wiki.gnome.org/Apps/Sysprof"
+license=(GPL)
+arch=(x86_64)
+depends=(gtk3 polkit libdazzle)
+makedepends=(yelp-tools git meson)
+options=(debug)
+_commit=7d44e2db75941e5eef0c67fae3c0ce0cbd176dc6 # tags/3.44.0^0
+source=("git+https://gitlab.gnome.org/GNOME/sysprof.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd sysprof
+ git describe --tags | sed 's/^sysprof-//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd sysprof
+}
+
+build() {
+ # Ensure static library is non-LTO compatible
+ CFLAGS+=" -ffat-lto-objects"
+
+ arch-meson sysprof build
+ meson compile -C build
+}
+
+check() {
+ meson test -C build --print-errorlogs
+}
+
+_pick() {
+ local p="$1" f d; shift
+ for f; do
+ d="$srcdir/$p/${f#$pkgdir/}"
+ mkdir -p "$(dirname "$d")"
+ mv "$f" "$d"
+ rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+ done
+}
+
+package_sysprof() {
+ depends+=(libsysprof-capture)
+ groups=(gnome-extra)
+
+ meson install -C build --destdir "$pkgdir"
+
+ cd "$pkgdir"
+
+ _pick capture usr/lib/libsysprof-capture-*
+ _pick capture usr/lib/pkgconfig/sysprof-capture-*
+ _pick capture usr/include/sysprof-*/sysprof-{address,capture,clock,collector,macros}.h
+ _pick capture usr/include/sysprof-*/sysprof-{platform,version,version-macros}.h
+ _pick capture usr/include/sysprof-*/sysprof-capture-{condition,cursor,reader,types,writer}.h
+}
+
+package_libsysprof-capture() {
+ pkgdesc+=" - capture library"
+ depends=()
+ license=(BSD)
+
+ mv capture/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 \
+ sysprof/src/libsysprof-capture/COPYING
+}
More information about the arch-commits
mailing list