void-packages/srcpkgs/sysprof/template

34 lines
1.1 KiB
Bash

# Template file for 'sysprof'
pkgname=sysprof
version=3.46.0
revision=2
build_style=meson
configure_args="-Dgtk=true -Dsystemdunitdir=/usr/lib/systemd"
hostmakedepends="gettext pkg-config itstool glib-devel desktop-file-utils
gtk-update-icon-cache"
makedepends="gtk4-devel libdazzle-devel polkit-devel glib-devel elogind-devel
json-glib-devel libunwind-devel libadwaita-devel"
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=3e430d578150a8dd0b075b17d2fcc1ba704d42880262f0cc651f33e493be4071
# for ITS rules
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" polkit-devel"
fi
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/*.a"
}
}