diff options
author | Dugan Chen <thedoogster [at] gmail [dot] com> | 2019-05-04 01:47:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-05-04 01:48:29 +0700 |
commit | febfd4de2d389bdfb099ac2784e4cbc72986e9e5 (patch) | |
tree | 052e24c6626b43e9df6d1c9875bcadb22dfb9a13 | |
parent | 955ee7ed3428b08929a8eae6e28918c76ded0ba9 (diff) |
graphics/vulkan-sdk-bin: Added (Vulkan SDK).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | graphics/vulkan-sdk-bin/README | 17 | ||||
-rw-r--r-- | graphics/vulkan-sdk-bin/slack-desc | 19 | ||||
-rw-r--r-- | graphics/vulkan-sdk-bin/vulkan-sdk-bin.SlackBuild | 85 | ||||
-rw-r--r-- | graphics/vulkan-sdk-bin/vulkan-sdk-bin.info | 10 |
4 files changed, 131 insertions, 0 deletions
diff --git a/graphics/vulkan-sdk-bin/README b/graphics/vulkan-sdk-bin/README new file mode 100644 index 0000000000000..d7f13138daf46 --- /dev/null +++ b/graphics/vulkan-sdk-bin/README @@ -0,0 +1,17 @@ +This packages the Vulkan SDK binaries for Slackware. + +The Vulkan SDK provides the development and runtime components +required to build, run and debug Vulkan applications. This SDK is +based on the Vulkan API header. The SDK also includes certain Vulkan +extensions for window system integration and debug extensions. + +The Vulkan API is a low overhead, explicit, cross-platform graphics +API that provides applications with direct control over the GPU, +maximizing performance. + +The SDK does not include a Vulkan driver. Please contact your +CPU hardware vendor for a Vulkan Installable Client Driver (ICD). +This SDK will allow you to build Vulkan applications but you will +need a Vulkan driver (ICD) to execute them. + +The SDK is only supported on x86_64 systems. diff --git a/graphics/vulkan-sdk-bin/slack-desc b/graphics/vulkan-sdk-bin/slack-desc new file mode 100644 index 0000000000000..cd59507641b01 --- /dev/null +++ b/graphics/vulkan-sdk-bin/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +vulkan-sdk-bink: vulkan-sdk-bink (Vulkan SDK) +vulkan-sdk-bink: +vulkan-sdk-bink: The Vulkan SDK provides the development and runtime components +vulkan-sdk-bink: required to build, run and debug Vulkan applications. This SDK is +vulkan-sdk-bink: based on the Vulkan API header. Th SDK also includes certain Vulkan +vulkan-sdk-bink: extensions for window system integration and debug extensions. +vulkan-sdk-bink: +vulkan-sdk-bink: The Vulkan API is a low overhead, explicit, cross-platform graphics +vulkan-sdk-bink: API that provides applications with direct control over the GPU, +vulkan-sdk-bink: maximizing performance. +vulkan-sdk-bink: diff --git a/graphics/vulkan-sdk-bin/vulkan-sdk-bin.SlackBuild b/graphics/vulkan-sdk-bin/vulkan-sdk-bin.SlackBuild new file mode 100644 index 0000000000000..4fce2361e2aa9 --- /dev/null +++ b/graphics/vulkan-sdk-bin/vulkan-sdk-bin.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + +# Slackware build script for vulkan-sdk-bin + +# Copyright 2019 Dugan Chen Canada +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=vulkan-sdk-bin +SRCNAM=vulkansdk +VERSION=${VERSION:-1.1.70.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + echo "$ARCH is not supported." >&2 + exit 1 +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf VulkanSDK $PRGNAM-linux-$ARCH-$VERSION.run +cp $CWD/$SRCNAM-linux-$ARCH-$VERSION.run . +chmod +x $SRCNAM-linux-$ARCH-$VERSION.run +./$SRCNAM-linux-$ARCH-$VERSION.run +cd VulkanSDK +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX +cp -r $VERSION/$ARCH/lib/* $PKG/usr/lib$LIBDIRSUFFIX +mkdir -p $PKG/{usr/bin,etc,usr/include} +cp -r $VERSION/$ARCH/bin/* $PKG/usr/bin +cp -r $VERSION/$ARCH/etc/* $PKG/etc +cp -r $VERSION/$ARCH/include/* $PKG/usr/include + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + $VERSION/{*.html,doc/,samples/,examples} \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/graphics/vulkan-sdk-bin/vulkan-sdk-bin.info b/graphics/vulkan-sdk-bin/vulkan-sdk-bin.info new file mode 100644 index 0000000000000..6aaa38cfa35cc --- /dev/null +++ b/graphics/vulkan-sdk-bin/vulkan-sdk-bin.info @@ -0,0 +1,10 @@ +PRGNAM="vulkan-sdk-bin" +VERSION="1.1.70.0" +HOMEPAGE="https://www.lunarg.com/vulkan-sdk/" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://vulkan.lunarg.com/sdk/download/1.1.70.0/linux/vulkansdk-linux-x86_64-1.1.70.0.run" +MD5SUM_x86_64="98c6614ecd0979466bde74b88aa1e420" +REQUIRES="" +MAINTAINER="Dugan Chen" +EMAIL="thedoogster [at] gmail [dot] com" |