# Maintainer: Bruno Pagani <archange@archlinux.org>
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=igsc
pkgver=0.9.5
pkgrel=9
pkgdesc='Intel graphics system controller firmware update library'
arch=('x86_64' 'aarch64')
url='https://github.com/intel/igsc/'
license=('Apache-2.0')
depends=(
    'glibc'
    'intel-metee'
    'systemd-libs')
makedepends=(
    'cmake'
    'systemd')
source=("https://github.com/intel/igsc/archive/V${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('516a099239ad0541598be87025556c878c0d11c6d43e09115d2bb2e24508b6ec')

build() {
    cmake -B build -S "${pkgname}-${pkgver}" \
        -G 'Unix Makefiles' \
        -DCMAKE_BUILD_TYPE='None '\
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -DENABLE_WERROR='OFF' \
        -Wno-dev
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}
