void-packages/srcpkgs/sysprof/template
2018-09-07 01:02:40 -03:00

40 lines
1.1 KiB
Bash

# Template file for 'sysprof'
pkgname=sysprof
version=3.30.0
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=29cd2c4be277f00698dce48259219557c4fddc2c01254b8fac95900a8c663f63
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"
}
}