void-packages/srcpkgs/sysprof/template
Jürgen Buchmüller 8c556703f6 sysprof: fix arm*-musl build
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-03-20 13:36:56 +01:00

38 lines
1 KiB
Bash

# Template file for 'sysprof'
pkgname=sysprof
version=3.28.0
revision=1
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 <xtraeme@voidlinux.eu>"
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
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"
vmove usr/share
}
}