# Contributor: Leo # Maintainer: pkgname=intel-gmmlib pkgver=22.3.9 pkgrel=1 pkgdesc="Intel Graphics Memory Management Library" options="!check" # tests can't run in check(), only on install url="https://github.com/intel/gmmlib/" arch="aarch64 x86_64" license="MIT" makedepends="cmake samurai" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/intel/gmmlib/archive/intel-gmmlib-$pkgver.tar.gz" builddir="$srcdir/gmmlib-intel-gmmlib-$pkgver" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_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=True \ -DCMAKE_BUILD_TYPE=Release \ -DRUN_TEST_SUITE=OFF \ $CMAKE_CROSSOPTS cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 5dae51b028ff604ecdee4b939c31ff029a289a75485a820547976ef15de7ce7793f45fa9b9594022435c30237548fff212dc7cbbbefbdaadee3a5be6e4a75401 intel-gmmlib-22.3.9.tar.gz "