Skip to content

Instantly share code, notes, and snippets.

@antifermion antifermion/PKGBUILD
Created Dec 23, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.