summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 865bc9afcade84b0eb26ae06a81571650b6de336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=intel-gmmlib-legacy
pkgver=22.5.0
pkgrel=1
pkgdesc='Intel Graphics Memory Management Library (legacy platforms)'
arch=('x86_64')
url='https://github.com/intel/gmmlib/'
license=('MIT')
depends=('gcc-libs')
makedepends=('cmake')
provides=("intel-gmmlib=${pkgver}" 'gmmlib')
conflicts=('intel-gmmlib' 'gmmlib')
replaces=('gmmlib')
options=('!emptydirs')
source=("https://github.com/intel/gmmlib/archive/intel-gmmlib-${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('a3f37dff076503b833ce2dc5c0f9cf854ad706c7857fa6a70972716342efe523')

build() {
    cmake -B build -S "gmmlib-intel-gmmlib-${pkgver}" \
        -G 'Unix Makefiles' \
        -DCMAKE_BUILD_TYPE:STRING='Release' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -DRUN_TEST_SUITE:BOOL='ON' \
        -Wno-dev
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
    install -D -m644 "gmmlib-intel-gmmlib-${pkgver}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}