# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2

# Snapshot until release work in progress: https://github.com/lpereira/hardinfo/issues/530
GITHUB_REVISION=f6a4f52868c2404f3ad58ef04e513ffe5fa090c7
require github [ user=lpereira ]
require cmake
require gtk-icon-cache

SUMMARY="A system information and benchmark tool for Linux systems"
HOMEPAGE="http://hardinfo.org/"

LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""

DEPENDENCIES="
    build:
        sys-devel/gettext
        virtual/pkg-config
    build+run:
        core/json-glib
        dev-libs/glib:2
        gnome-desktop/libsoup
        x11-libs/cairo
        x11-libs/gdk-pixbuf
        x11-libs/gtk+:3
        x11-libs/libX11
        x11-libs/pango
    suggestion:
        app-benchmarks/sysbench [[ description = [ additional cpu/memory benchmarks ] ]]
        sys-apps/fwupd [[ description = [ read firmware details ] ]]
        sys-apps/udisks [[ description = [ read nvme storage information ] ]]
        x11-dri/mesa-demos [[ description = [ show GLX info ] ]]
"

CMAKE_SRC_CONFIGURE_PARAMS=(
    -DHARDINFO_GTK3:BOOL=TRUE
)