archrelease: copy trunk to community-any
[ArchLinux/community.git] / intel-gmmlib / trunk / PKGBUILD
blobff6c40bf3f94bb94f3d86c5b2684e0d84bf497d4
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
2 # Maintainer: Daniel Bermond <dbermond@archlinux.org>
4 pkgname=intel-gmmlib
5 pkgver=22.3.3
6 pkgrel=1
7 pkgdesc="Intel Graphics Memory Management Library"
8 arch=(x86_64)
9 url="https://github.com/intel/gmmlib/"
10 license=(MIT)
11 depends=(gcc-libs)
12 makedepends=(cmake ninja)
13 provides=(gmmlib)
14 conflicts=(gmmlib)
15 replaces=(gmmlib)
16 options=(!emptydirs)
17 source=(https://github.com/${pkgname/-//}/archive/${pkgname}-${pkgver}.tar.gz)
18 sha256sums=('86651bd2803c9f0afd82471bec784e65d2b418dee315a053d22215eb2a679be7')
20 build() {
21   cmake -B build -S gmmlib-${pkgname}-${pkgver} -G Ninja \
22     -DCMAKE_BUILD_TYPE=Release \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DRUN_TEST_SUITE=ON \
25     -Wno-dev
26   cmake --build build
29 package() {
30   DESTDIR="${pkgdir}" cmake --install build
31   install -Dm644 gmmlib-${pkgname}-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}/