void-packages/srcpkgs/sysprof/template

35 lines
955 B
Bash

# Template file for 'sysprof'
pkgname=sysprof
version=3.24.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config itstool glib-devel"
makedepends="gtk+3-devel polkit-devel glib-devel"
short_desc="A system-wide profiler for Linux"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://sysprof.com/"
distfiles="https://download.gnome.org/sources/sysprof/${version%.*}/$pkgname-$version.tar.xz"
checksum=054eebe2afb6fe3c06ac8c46bc045c42f675d4fd64e6f16cbc602d5c7ce27bec
configure_args="--enable-gtk --with-sysprofd"
case "$XBPS_TARGET_MACHINE" in
x64_64-musl|aarch64-musl) CFLAGS="-D__WORDSIZE=64" ;;
*-musl) CFLAGS="-D__WORDSIZE=32" ;;
esac
CFLAGS+=" -Wno-error"
pre_build() {
export SHELL=/bin/bash
}
sysprof-devel_package() {
depends="sysprof>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/share
}
}