45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'sysprof'
|
|
pkgname=sysprof
|
|
version=3.30.2
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Denable_gtk=true -Dsystemdunitdir=/DELETEME"
|
|
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="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
license="GPL-2.0-or-later, GPL-3.0-or-later"
|
|
homepage="http://sysprof.com/"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=e90878e5a509bd79d170a7a51d47cc5508ab1363afaf0d97654373dfd9c8ba0b
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64-musl|x86_64-musl|ppc64le-musl|ppc64-musl)
|
|
broken="__WORDSIZE definitions aren't recognized"
|
|
;;
|
|
x64_64-musl|aarch64-musl|ppc64le-musl|ppc64-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"
|
|
}
|
|
}
|