summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-19 23:08:20 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-19 23:08:20 -0400
commitd65b923e727c91bb89db867829ce462945b96faf (patch)
treef4bb981e5144fc3f083de54e9e18874b3ba6bb9d
parent3bfa12fcadfb230e19be1ddb2f4bfe6a9ee0952d (diff)
downloadslackbuilds-d65b923e727c91bb89db867829ce462945b96faf.tar.gz
libraries/opencl-amd: Fix package filename, docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--libraries/opencl-amd/opencl-amd.SlackBuild21
1 files changed, 14 insertions, 7 deletions
diff --git a/libraries/opencl-amd/opencl-amd.SlackBuild b/libraries/opencl-amd/opencl-amd.SlackBuild
index e76d949eab..bf2b2bf033 100644
--- a/libraries/opencl-amd/opencl-amd.SlackBuild
+++ b/libraries/opencl-amd/opencl-amd.SlackBuild
@@ -26,6 +26,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220301 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - do not include -$MINVER in the package filename: for one thing,
+# dashes aren't allowed in package version numbers.
+# - install shared libs executable.
+# - include standard Slackware doc dir, with this SlackBuild in it.
+# - include a copy of amdgpu.ids, rather than a symlink to the system one.
cd $(dirname $0) ; CWD=$(pwd)
@@ -33,7 +39,7 @@ PRGNAM="opencl-amd"
VERSION=${VERSION:-19.50}
MINVER="967956"
AMDVER="2.4.99"
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -61,11 +67,8 @@ EOF
exit 1
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$VERSION-$MINVER-$ARCH-$BUILD$TAG.$PKGTYPE"
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -123,11 +126,12 @@ mv "${TMP}/opencl/${OPENCL_SHARED}/libamdocl-orca64.so" "${PKG}/usr/lib${LIBDIRS
mv "${TMP}/opencl/${OPENCL_SHARED}/libamdocl12cl64.so" "${PKG}/usr/lib${LIBDIRSUFFIX}/"
# libdrm
mv "${TMP}/libdrm/${LIBDRM_SHARED}/libdrm_amdgpo.so.1.0.0" "${PKG}/usr/lib${LIBDIRSUFFIX}/"
+chmod 755 $PKG/usr/lib*/lib*.so*
mv "${TMP}/libdrm/${LIBDRM_SHARED}/libdrm_amdgpo.so.1" "${PKG}/usr/lib${LIBDIRSUFFIX}/"
mkdir -p "${PKG}/opt/amdgpu/share/libdrm"
cd "${PKG}/opt/amdgpu/share/libdrm"
-ln -s "/usr/share/libdrm/amdgpu.ids" "amdgpu.ids"
+cp "/usr/share/libdrm/amdgpu.ids" "amdgpu.ids"
rm -rf "${TMP}/opencl"
rm -rf "${TMP}/libdrm"
@@ -136,6 +140,9 @@ rm -rf "${TMP}/libdrm"
mkdir -p "${PKG}/install"
cat "${CWD}/slack-desc" > "${PKG}/install/slack-desc"
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
cd ${PKG}
chown -R root:root .
find -L . \
@@ -144,4 +151,4 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-/sbin/makepkg -l y -c n "${OUTPUT}/${PRGNAM}-${VERSION}-${MINVER}-${ARCH}-${BUILD}${TAG}.$PKGTYPE"
+/sbin/makepkg -l y -c n "${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.$PKGTYPE"