Skip to content

Instantly share code, notes, and snippets.

@antifermion
Created December 23, 2018 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antifermion/bb0a72bdbf1c80df523913ac8946cbbc to your computer and use it in GitHub Desktop.
Save antifermion/bb0a72bdbf1c80df523913ac8946cbbc to your computer and use it in GitHub Desktop.
pkgname=rocm-cmake-git
pkgver=r64.ac45c6e
pkgrel=1
pkgdesc="cmake modules for common build tasks needed for the ROCM software stack"
arch=(x86_64)
url="https://github.com/RadeonOpenCompute/rocm-cmake"
license=(MIT)
groups=()
depends=()
makedepends=(git cmake)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/RadeonOpenCompute/rocm-cmake.git#branch=master')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/opt/rocm" ..
}
package() {
cd "$srcdir/${pkgname%-git}/build"
cmake --build . --target install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment