aboutsummaryrefslogtreecommitdiff
path: root/development/hipSYCL
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2024-05-05 22:46:52 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-11 08:12:19 +0700
commitf50c409e174a07d33e7ec53a0ab8fd2449a9d0c0 (patch)
treef6ef1e8402deb8da54b48832b74a54050f224ac5 /development/hipSYCL
parenteb0369bfd441e1645f1e260409fc30937c82379a (diff)
development/hipSYCL: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/hipSYCL')
-rw-r--r--development/hipSYCL/hipSYCL.SlackBuild20
-rw-r--r--development/hipSYCL/hipSYCL.info4
2 files changed, 12 insertions, 12 deletions
diff --git a/development/hipSYCL/hipSYCL.SlackBuild b/development/hipSYCL/hipSYCL.SlackBuild
index 4ac3aa5df99d..d6b7be1fcc57 100644
--- a/development/hipSYCL/hipSYCL.SlackBuild
+++ b/development/hipSYCL/hipSYCL.SlackBuild
@@ -26,6 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hipSYCL
+SRCNAM=AdaptiveCpp
VERSION=${VERSION:-0.9.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,9 +71,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -117,12 +118,12 @@ cd ..
# fix for cmake files at wrong place.
# Don't found another way to do it let's manually move them
-mv $PKG/usr/lib/* $PKG/usr/lib${LIBDIRSUFFIX}
-
-# fix for the cmake files configured to use /lib/cmake path
-sed -i 's#/lib/cmake#/lib'${LIBDIRSUFFIX}'/cmake#g' \
- $PKG/usr/lib${LIBDIRSUFFIX}/cmake/hipSYCL/hipsycl-config.cmake
-
+if [ -n "$LIBDIRSUFFIX" ] ; then
+ mv $PKG/usr/lib/* $PKG/usr/lib${LIBDIRSUFFIX}
+ # fix for the cmake files configured to use /lib/cmake path
+ sed -i 's#/lib/cmake#/lib'${LIBDIRSUFFIX}'/cmake#g' \
+ $PKG/usr/lib${LIBDIRSUFFIX}/cmake/hipSYCL/hipsycl-config.cmake
+fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc $PKG/usr/doc/$PRGNAM-$VERSION
@@ -130,7 +131,6 @@ cp -a doc $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/$PRGNAM-$VERSION
cp -a examples $PKG/usr/share/$PRGNAM-$VERSION
-
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
diff --git a/development/hipSYCL/hipSYCL.info b/development/hipSYCL/hipSYCL.info
index 4f096f798288..37670cd56f0e 100644
--- a/development/hipSYCL/hipSYCL.info
+++ b/development/hipSYCL/hipSYCL.info
@@ -1,7 +1,7 @@
PRGNAM="hipSYCL"
VERSION="0.9.3"
-HOMEPAGE="https://hipsycl.github.io"
-DOWNLOAD="https://github.com/illuhad/hipSYCL/archive/v0.9.3/hipSYCL-0.9.3.tar.gz"
+HOMEPAGE="https://adaptivecpp.github.io/"
+DOWNLOAD="https://github.com/AdaptiveCpp/AdaptiveCpp/archive/v0.9.3/AdaptiveCpp-0.9.3.tar.gz"
MD5SUM="2e213619c9a0e5761100166beec0a22e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""