# Contributor: Leo # Maintainer: Leo pkgname=intel-gmmlib pkgver=20.1.1 pkgrel=0 pkgdesc="Intel Graphics Memory Management Library" options="!check" url="https://github.com/intel/gmmlib/" arch="x86_64 x86" license="MIT" makedepends="cmake" 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 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -Wno-dev \ -DRUN_TEST_SUITE=OFF \ $CMAKE_CROSSOPTS . make -C build } package() { make -C build DESTDIR="$pkgdir" install } sha512sums="e16472f24c5d1fb9f56c45ce1aefe6b1799a2c968aab09808115eeb9deda9a7610da989ae2fdc1796d94d05ca09a19ab2e74be62b4192eeee70ead404561a03f intel-gmmlib-20.1.1.tar.gz"