diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -1,16 +1,15 @@ # Maintainer: Markus Näther <naetherm@informatik.uni-freiburg.de> pkgname=hipcub -pkgver=3.0.0 +pkgver=3.1.0 pkgrel=1 pkgdesc="Reusable software components for the rocm developers." arch=('x86_64') url="https://github.com/ROCmSoftwarePlatform/hipCUB" -license=('NCSAOSL') -depends=(hcc hip) -makedepends=(git cmake gcc ninja hcc python2 rocminfo) -srcver="3.0.0" -source=("https://github.com/ROCmSoftwarePlatform/hipCUB/archive/$srcver.tar.gz") -sha256sums=("ee545d012e3af4c51f1a125bbe3b44f5eb4fd8a3c3a133edea19a8424e5b9d98") +license=('custom:NCSAOSL') +depends=('hcc' 'hip') +makedepends=('cmake' 'python2' 'rocminfo') +source=("https://github.com/ROCmSoftwarePlatform/hipCUB/archive/$pkgver.tar.gz") +sha256sums=('9fa41d9b25d5347ea6446ef32777dbe447257ccb494d82cb134529f4b45064a0') build() { mkdir -p "$srcdir/build" @@ -21,26 +20,27 @@ build() { [[ -e "$srcdir/python" ]] || ln -s /usr/bin/python2 "$srcdir/python" # fix broken build with stack protection - export CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/-fstack-protector-strong//') - export CFLAGS=$(echo $CFLAGS | sed -e 's/-fstack-protector-strong//') - export CPPFLAGS=$(echo $CPPFLAGS | sed -e 's/-fstack-protector-strong//') + export CFLAGS="$(sed -e 's/-fstack-protector-strong//' <<< "$CFLAGS")" + export CXXFLAGS="$(sed -e 's/-fstack-protector-strong//' <<< "$CXXFLAGS")" + export CPPFLAGS="$(sed -e 's/-fstack-protector-strong//' <<< "$CPPFLAGS")" # compile with HCC - export CXX=/opt/rocm/hcc/bin/hcc + export CXX="/opt/rocm/hcc/bin/hcc" # TODO: fix libhipcub.so, it contains references to $srcdir cmake -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="$pkgdir/opt/rocm/hipcub" \ - -G Ninja \ - "$srcdir/hipCUB-$srcver" - ninja + -DCMAKE_INSTALL_PREFIX=/opt/rocm/hipcub \ + "$srcdir/hipCUB-$pkgver" + make } package() { - ninja -C "$srcdir/build" install + cd "$srcdir/build" + + make DESTDIR="$pkgdir" install - mkdir -p $pkgdir/etc/ld.so.conf.d - cat <<-EOF > $pkgdir/etc/ld.so.conf.d/hipcub.conf - /opt/rocm/hipcub/lib/ - EOF + install -d "$pkgdir/etc/ld.so.conf.d" + cat << EOF > "$pkgdir/etc/ld.so.conf.d/hipcub.conf" +/opt/rocm/hipcub/lib +EOF } |