development/hipSYCL: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
eb0369bfd4
commit
f50c409e17
|
@ -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
|
||||
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in New Issue