# Template file for 'sysprof' pkgname=sysprof version=3.28.0 revision=2 build_style=meson hostmakedepends="pkg-config itstool glib-devel" makedepends="gtk+3-devel polkit-devel glib-devel elogind-devel" short_desc="A system-wide profiler for Linux" maintainer="Juan RP " license="GPL-2" homepage="http://sysprof.com/" distfiles="https://download.gnome.org/sources/sysprof/${version%.*}/${pkgname}-${version}.tar.xz" checksum=65437778af2fc3bab05bf9c1871fbd8726a4bd6471f1288d7b7a7e3429cee436 configure_args="-Denable-gtk=true -Dsystemdunitdir=/DELETEME" case "$XBPS_TARGET_MACHINE" in aarch64-musl|x86_64-musl) broken="__WORDSIZE definitions aren't recognized" ;; x64_64-musl|aarch64-musl) CFLAGS="-D__WORDSIZE=64" ;; *-musl) CFLAGS="-D__WORDSIZE=32" ;; esac CFLAGS=" -Wno-error -Wno-error=undef" pre_build() { export SHELL=/bin/bash } post_install() { rm -r $DESTDIR/DELETEME } sysprof-devel_package() { depends="sysprof>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" } }