upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / rocprim / trunk / PKGBUILD
blob01b72ed11c618526416a9ff47eb092cfb12ace6c
1 # Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
2 # Contributor: Markus Näther <naetherm@informatik.uni-freiburg.de>
3 pkgname=rocprim
4 pkgver=5.5.0
5 pkgrel=1
6 pkgdesc='Header-only library providing HIP parallel primitives'
7 arch=('x86_64')
8 url='https://codedocs.xyz/ROCmSoftwarePlatform/rocPRIM'
9 _git='https://github.com/ROCmSoftwarePlatform/rocPRIM'
10 license=('MIT')
11 depends=('hip')
12 makedepends=('rocm-cmake')
13 source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
14 sha256sums=('968d9059f93d3f0f8a602f7b989e54e36cff2f9136486b6869e4534a5bf8c7d9')
15 _dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
17 build() {
18   # -fcf-protection is not supported by HIP, see
19   # https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.5/page/Appendix_A.html
21   CXXFLAGS="${CXXFLAGS} -fcf-protection=none" \
22   cmake \
23     -Wno-dev \
24     -S "$_dirname" \
25     -B build \
26     -DCMAKE_BUILD_TYPE=None \
27     -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
28     -DCMAKE_INSTALL_PREFIX=/opt/rocm \
29     -Damd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr
30   cmake --build build
33 package() {
34   DESTDIR="$pkgdir" cmake --install build
36   install -Dm644 "$_dirname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"