summaryrefslogtreecommitdiffstats
path: root/abs/extra/intel-gmmlib/PKGBUILD
blob: eaa609d166583ffe0d7f540318d09746805223af (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
33
34
35
36
37
38
39
# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Daniel Bermond < yahoo-com: danielbermond >

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

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../${pkgname#*-}-${pkgname}-${pkgver} \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DRUN_TEST_SUITE=ON \
        -Wno-dev
    make
}

package() {
    cd build
    make DESTDIR="${pkgdir}" install
    install -Dm644 ../${pkgname#*-}-${pkgname}-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}