summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTorsten Keßler2022-10-14 18:21:56 +0200
committerTorsten Keßler2022-10-14 18:21:56 +0200
commitefa728fcdd2c0bc4223f71dfafae25a686dc52a4 (patch)
treead975809493e69e05d1d9f2785b1c6312513fd32 /PKGBUILD
parent7a22548325beaabd9d7f95a931d7ed13d5102080 (diff)
downloadaur-rocm-clang-ocl.tar.gz
upgpkg: rocm-clang-ocl 5.3.0-1
* Upstream added MIT license * Follow cmake template from wiki * Update checksum
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 16 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a269768b2ec..a6fdaca4181 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,32 +2,31 @@
# Contributor: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Lucas Magalhães <whoisroot@national.shitposting.agency>
pkgname=rocm-clang-ocl
-pkgver=5.2.3
+pkgver=5.3.0
pkgrel=1
-pkgdesc="OpenCL compilation with clang compiler."
+pkgdesc="OpenCL compilation with clang compiler"
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/clang-ocl"
-license=('unknown')
+license=('MIT')
depends=('rocm-llvm' 'rocm-opencl-runtime')
-makedepends=('cmake' 'rocm-cmake')
+makedepends=('rocm-cmake')
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz")
-sha256sums=('9cdb387168975207314c08ba63ae7cd11f70542117a5390eddbec77ebb84bed0')
+sha256sums=('66b80ba050848ad921496bd894e740e66afad0ba1923b385f01f2eeae97999ad')
_dirname="$(basename "$url")-$(basename ${source[0]} .tar.gz)"
build() {
- cmake -Wno-dev -B build \
- -S "$_dirname" \
- -DCLANG_BIN=/opt/rocm/llvm/bin \
- -DBITCODE_DIR=/opt/rocm/amdgcn/bitcode \
- -DCMAKE_INSTALL_PREFIX=/opt/rocm
-
- make -C build
-}
-
-check() {
- make -C build check
+ cmake \
+ -Wno-dev \
+ -B build \
+ -S "$_dirname" \
+ -DCLANG_BIN=/opt/rocm/llvm/bin \
+ -DBITCODE_DIR=/opt/rocm/amdgcn/bitcode \
+ -DCMAKE_INSTALL_PREFIX=/opt/rocm
+ cmake --build build
}
package() {
- DESTDIR="$pkgdir" make -C build install
+ DESTDIR="$pkgdir" cmake --install build
+
+ install -Dm644 "$_dirname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}