Skip to content

Instantly share code, notes, and snippets.

@tpkessler
Created Mar 15, 2020
Embed
What would you like to do?
[AUR] rocm-clang-ocl for ROCm 3.1
pkgbase = rocm-clang-ocl
pkgdesc = OpenCL compilation with clang compiler.
pkgver = 0.5.0.48
pkgrel = 1
url = https://github.com/RadeonOpenCompute/ROCm
arch = x86_64
license = EULA
provides = rocm-clang-ocl
conflicts = rocm-clang-ocl
source = http://repo.radeon.com/rocm/apt/debian/pool/main/r/rocm-clang-ocl/rocm-clang-ocl_0.5.0.48-rocm-rel-3.1-44-fa039e7_amd64.deb
sha256sums = SKIP
pkgname = rocm-clang-ocl
# Maintainer: Lucas Magalhães <whoisroot@national.shitposting.agency>
pkgname=rocm-clang-ocl
pkgver=0.5.0.48
_rocver=3.1.0
_buildrel=3.1-44-fa039e7
pkgrel=1
_debfile=rocm-clang-ocl_${pkgver}-rocm-rel-${_buildrel}_amd64.deb
pkgdesc="OpenCL compilation with clang compiler."
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/ROCm"
license=('EULA')
groups=()
depends=()
makedepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
source=("http://repo.radeon.com/rocm/apt/debian/pool/main/r/rocm-clang-ocl/${_debfile}")
sha256sums=('SKIP')
package() {
cd "$srcdir"
tar xf data.tar.gz
mkdir -p ${pkgdir}/opt/rocm/bin
cp -ax opt/rocm-${_rocver}/bin/* ${pkgdir}/opt/rocm/bin
sed -i s/rocm-${_rocver}/rocm/g ${pkgdir}/opt/rocm/bin/clang-ocl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment