# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>

pkgname=coreboot-configurator
pkgver=51
pkgrel=1
pkgdesc="A simple GUI to change settings in coreboot's CBFS, via the nvramtool utility."
url='https://github.com/StarLabsLtd/coreboot-configurator'
arch=('x86_64')
license=('GPL2')
depends=('coreboot-utils-git' 'yaml-cpp' 'meson' 'qt5-base' 'ninja')
source=('git+https://github.com/StarLabsLtd/coreboot-configurator.git')
sha256sums=('SKIP')

pkgver(){
  cd "$pkgname"
  git rev-list --count HEAD
}

build() {
    cd "$pkgname"

    meson setup build/
    ninja -C build all
}

package() {
    cd "$pkgname"

    export DESTDIR="$pkgdir"
    ninja -C build install
}