blob: db846b2a1edd0b502a9becc9f5549d361aefa454 (
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
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Lucas Magalhães <whoisroot@national.shitposting.agency>
pkgname=rocm-clang-ocl
pkgver=3.1.0
pkgrel=2
pkgdesc="OpenCL compilation with clang compiler."
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/clang-ocl"
license=('unknown')
makedepends=('cmake' 'hcc' 'rocm-cmake')
source=("${pkgname}-${pkgver}::http://github.com/RadeonOpenCompute/clang-ocl/archive/roc-${pkgver}.tar.gz")
sha256sums=('af93e626564cee2b3f6f5c2da0b5b95a9894f7357d895b259a706d38a57f1ef6')
_pkgname=clang-ocl
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DOPENCL_ROOT=/opt/rocm/hcc \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
"$srcdir/$_pkgname-roc-$pkgver"
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir" install
}
|