summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1682835874f96f2052bdd34a33162428e337b81 (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
# Maintainer Denis Demidov <dennis.demidov@gmail.com>
pkgname=oclgrind-git
pkgver=20170518
pkgrel=1
pkgdesc="A SPIR interpreter and virtual OpenCL device simulator."
arch=("any")
url="https://github.com/jrprice/Oclgrind"
makedepends=("cmake")
depends=("clang" "llvm")
license=("BSD")

source=("https://github.com/jrprice/Oclgrind/archive/master.zip")

md5sums=("SKIP")

pkgver() {
    date +%Y%m%d
}

build() {
    cd "${srcdir}/Oclgrind-master"
    cmake -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DLIBDIR_SUFFIX="" \
          . -Bbuild
    cmake --build build
}

package() {
    cd "${srcdir}/Oclgrind-master/build"
    VERBOSE=1 DESTDIR=${pkgdir} make install
    install -m755 -d ${pkgdir}/etc/OpenCL/vendors
    install -m644 oclgrind.icd ${pkgdir}/etc/OpenCL/vendors
}