57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
# Template file for 'sysprof'
|
|
pkgname=sysprof
|
|
version=45.2
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dgtk=true -Dsystemdunitdir=/usr/lib/systemd -Db_lto=false"
|
|
hostmakedepends="gettext pkg-config itstool glib-devel desktop-file-utils
|
|
polkit-devel gtk4-update-icon-cache"
|
|
makedepends="gtk4-devel libadwaita-devel libdex-devel
|
|
json-glib-devel libpanel-devel polkit-devel libunwind-devel"
|
|
depends="sysprof-cli"
|
|
short_desc="System-wide profiler for Linux"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later, GPL-3.0-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/sysprof"
|
|
changelog="https://gitlab.gnome.org/GNOME/sysprof/-/raw/master/NEWS"
|
|
distfiles="${GNOME_SITE}/sysprof/${version%.*}/sysprof-${version}.tar.xz"
|
|
checksum=29e0dc15eac46da09146f9c9f11cbd05f230403f9a01e9164eeb0907c4420c8d
|
|
|
|
sysprof-cli_package() {
|
|
# turbostat is necessary for recording power usage
|
|
# but it is only avaliable on x86
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*)
|
|
depends="turbostat"
|
|
esac
|
|
short_desc+=" - command line utilities"
|
|
pkg_install() {
|
|
vmove "usr/bin/sysprof-*"
|
|
vmove usr/libexec
|
|
vmove usr/share/dbus-1/system-services/org.gnome.Sysprof3.service
|
|
vmove usr/share/dbus-1/system.d/org.gnome.Sysprof3.conf
|
|
vmove usr/share/polkit-1/actions/org.gnome.sysprof3.policy
|
|
vmove usr/lib/systemd/sysprof3.service
|
|
}
|
|
}
|
|
|
|
libsysprof_package() {
|
|
short_desc+=" - runtime libraries and plugins"
|
|
pkg_install() {
|
|
vmove "usr/lib/libsysprof-6.so.*"
|
|
vmove "usr/lib/libsysprof-*-6.so"
|
|
}
|
|
}
|
|
|
|
sysprof-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} libglib-devel
|
|
json-glib-devel polkit-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/libsysprof-6.so
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|