40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'sysprof'
|
|
pkgname=sysprof
|
|
version=3.30.1
|
|
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=9dbfa9b95a8e1d86836c0b69b34aaf238cd1b27adeadf71682069d5ebd9f1aad
|
|
|
|
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"
|
|
}
|
|
}
|