Description="A system information and benchmark tool"
url="https://github.com/lpereira/hardinfo"

packager="tnut <tnut@nutyx.org>"
contributors="McKim"

makedepends=(git cmake json-glib gtk3
             libsoup)
run=(pciutils usbutils xorg-xrandr mesa
     hicolor-icon-theme desktop-file-utils
     gtk-update-icon-cache shared-mime-info)

name=hardinfo
version=0.5.1
release=4

prepare() {
git clone https://github.com/lpereira/hardinfo
cd $name
mkdir build
cd -
}
build() {

cd $name/build

cmake \
    -DJSON_GLIB_INCLUDE_DIRS=/usr/include/json-glib-1.0 \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DHARDINFO_GTK3=true \
    ..
make
make DESTDIR=$PKG install
}
