aports/testing/igsc/APKBUILD
2025-03-21 18:15:22 +00:00

45 lines
1.1 KiB
Text

# Contributor: FintasticMan <finlay.neon.kid@gmail.com>
# Maintainer: FintasticMan <finlay.neon.kid@gmail.com>
pkgname=igsc
pkgver=0.9.5
pkgrel=0
pkgdesc="Intel graphics system controller firmware update library"
url="https://github.com/intel/igsc"
arch="x86_64"
license="Apache-2.0"
makedepends="
cmake
cmocka-dev
eudev-dev
linux-headers
metee-dev
samurai
"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/intel/igsc/archive/refs/tags/V$pkgver.tar.gz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DENABLE_TESTS="$(want_check && echo ON || echo OFF)" \
$crossopts
cmake --build build
}
check() {
ctest --test-dir build/tests
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
6cd698e42cf5aa6b303fa1846b0906cbed16cb194bbdff860a11f9db31a2307a093f28d3caf19037ef9d4d62ef773066d88b9e0c0b7062fc24339ff4bdc9394e igsc-0.9.5.tar.gz
"