Created
December 23, 2018 16:06
-
-
Save antifermion/bb0a72bdbf1c80df523913ac8946cbbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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