mirror of
git://slackware.nl/current.git
synced 2025-01-07 05:25:35 +01:00
88d937fb4e
a/kernel-firmware-20230214_a253a37-noarch-1.txz: Upgraded. a/kernel-generic-6.1.12-x86_64-1.txz: Upgraded. a/kernel-huge-6.1.12-x86_64-1.txz: Upgraded. a/kernel-modules-6.1.12-x86_64-1.txz: Upgraded. d/kernel-headers-6.1.12-x86-1.txz: Upgraded. d/rust-1.66.1-x86_64-1.txz: Upgraded. k/kernel-source-6.1.12-noarch-1.txz: Upgraded. kde/bluedevil-5.27.0-x86_64-1.txz: Upgraded. kde/breeze-5.27.0-x86_64-1.txz: Upgraded. kde/breeze-grub-5.27.0-x86_64-1.txz: Upgraded. kde/breeze-gtk-5.27.0-x86_64-1.txz: Upgraded. kde/drkonqi-5.27.0-x86_64-1.txz: Upgraded. kde/kactivitymanagerd-5.27.0-x86_64-1.txz: Upgraded. kde/kde-cli-tools-5.27.0-x86_64-1.txz: Upgraded. kde/kde-gtk-config-5.27.0-x86_64-1.txz: Upgraded. kde/kdecoration-5.27.0-x86_64-1.txz: Upgraded. kde/kdeplasma-addons-5.27.0-x86_64-1.txz: Upgraded. kde/kgamma5-5.27.0-x86_64-1.txz: Upgraded. kde/khotkeys-5.27.0-x86_64-1.txz: Upgraded. kde/kinfocenter-5.27.0-x86_64-1.txz: Upgraded. kde/kmenuedit-5.27.0-x86_64-1.txz: Upgraded. kde/kpipewire-5.27.0-x86_64-1.txz: Upgraded. kde/kscreen-5.27.0-x86_64-1.txz: Upgraded. kde/kscreenlocker-5.27.0-x86_64-1.txz: Upgraded. kde/ksshaskpass-5.27.0-x86_64-1.txz: Upgraded. kde/ksystemstats-5.27.0-x86_64-1.txz: Upgraded. kde/kwallet-pam-5.27.0-x86_64-1.txz: Upgraded. kde/kwayland-integration-5.27.0-x86_64-1.txz: Upgraded. kde/kwin-5.27.0-x86_64-1.txz: Upgraded. kde/kwrited-5.27.0-x86_64-1.txz: Upgraded. kde/layer-shell-qt-5.27.0-x86_64-1.txz: Upgraded. kde/libkscreen-5.27.0-x86_64-1.txz: Upgraded. kde/libksysguard-5.27.0-x86_64-1.txz: Upgraded. kde/milou-5.27.0-x86_64-1.txz: Upgraded. kde/oxygen-5.27.0-x86_64-1.txz: Upgraded. kde/oxygen-sounds-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-browser-integration-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-desktop-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-disks-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-firewall-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-integration-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-nm-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-pa-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-sdk-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-systemmonitor-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-vault-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-workspace-5.27.0-x86_64-1.txz: Upgraded. kde/plasma-workspace-wallpapers-5.27.0-x86_64-1.txz: Upgraded. kde/polkit-kde-agent-1-5.27.0-x86_64-1.txz: Upgraded. kde/powerdevil-5.27.0-x86_64-1.txz: Upgraded. kde/qqc2-breeze-style-5.27.0-x86_64-1.txz: Upgraded. kde/sddm-kcm-5.27.0-x86_64-1.txz: Upgraded. kde/systemsettings-5.27.0-x86_64-1.txz: Upgraded. kde/xdg-desktop-portal-kde-5.27.0-x86_64-1.txz: Upgraded. l/mozjs102-102.8.0esr-x86_64-1.txz: Upgraded. n/php-7.4.33-x86_64-3.txz: Rebuilt. This update fixes security issues: Core: Password_verify() always return true with some hash. Core: 1-byte array overrun in common path resolve code. SAPI: DOS vulnerability when parsing multipart request body. For more information, see: https://www.cve.org/CVERecord?id=CVE-2023-0567 https://www.cve.org/CVERecord?id=CVE-2023-0568 https://www.cve.org/CVERecord?id=CVE-2023-0662 (* Security fix *) xap/mozilla-firefox-110.0-x86_64-1.txz: Upgraded. This update contains security fixes and improvements. For more information, see: https://www.mozilla.org/en-US/firefox/110.0/releasenotes/ https://www.mozilla.org/en-US/security/advisories/mfsa2023-05/ https://www.cve.org/CVERecord?id=CVE-2023-25728 https://www.cve.org/CVERecord?id=CVE-2023-25730 https://www.cve.org/CVERecord?id=CVE-2023-25743 https://www.cve.org/CVERecord?id=CVE-2023-0767 https://www.cve.org/CVERecord?id=CVE-2023-25735 https://www.cve.org/CVERecord?id=CVE-2023-25737 https://www.cve.org/CVERecord?id=CVE-2023-25738 https://www.cve.org/CVERecord?id=CVE-2023-25739 https://www.cve.org/CVERecord?id=CVE-2023-25729 https://www.cve.org/CVERecord?id=CVE-2023-25732 https://www.cve.org/CVERecord?id=CVE-2023-25734 https://www.cve.org/CVERecord?id=CVE-2023-25740 https://www.cve.org/CVERecord?id=CVE-2023-25731 https://www.cve.org/CVERecord?id=CVE-2023-25733 https://www.cve.org/CVERecord?id=CVE-2023-25736 https://www.cve.org/CVERecord?id=CVE-2023-25741 https://www.cve.org/CVERecord?id=CVE-2023-25742 https://www.cve.org/CVERecord?id=CVE-2023-25744 https://www.cve.org/CVERecord?id=CVE-2023-25745 (* Security fix *) extra/php80/php80-8.0.28-x86_64-1.txz: Upgraded. This update fixes security issues: Core: Password_verify() always return true with some hash. Core: 1-byte array overrun in common path resolve code. SAPI: DOS vulnerability when parsing multipart request body. For more information, see: https://www.cve.org/CVERecord?id=CVE-2023-0567 https://www.cve.org/CVERecord?id=CVE-2023-0568 https://www.cve.org/CVERecord?id=CVE-2023-0662 (* Security fix *) extra/php81/php81-8.1.16-x86_64-1.txz: Upgraded. This update fixes security issues: Core: Password_verify() always return true with some hash. Core: 1-byte array overrun in common path resolve code. SAPI: DOS vulnerability when parsing multipart request body. For more information, see: https://www.cve.org/CVERecord?id=CVE-2023-0567 https://www.cve.org/CVERecord?id=CVE-2023-0568 https://www.cve.org/CVERecord?id=CVE-2023-0662 (* Security fix *) isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. testing/packages/rust-1.67.1-x86_64-1.txz: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
704 lines
24 KiB
Bash
Executable file
704 lines
24 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Slackware build script for vulkan-sdk
|
|
|
|
# Copyright 2016, 2017, 2018, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, MN, USA
|
|
# 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.
|
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
PKGNAM=vulkan-sdk
|
|
# The ./VERSION file is created by ./fetch-sources.sh:
|
|
VERSION=${VERSION:-$(cat VERSION)}
|
|
BUILD=${BUILD:-1}
|
|
|
|
# Automatically determine the architecture we're building on:
|
|
MARCH=$( uname -m )
|
|
if [ -z "$ARCH" ]; then
|
|
case "$MARCH" in
|
|
i?86) export ARCH=i586 ;;
|
|
armv7hl) export ARCH=$MARCH ;;
|
|
arm*) export ARCH=arm ;;
|
|
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
*) export ARCH=$MARCH ;;
|
|
esac
|
|
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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
|
|
exit 0
|
|
fi
|
|
|
|
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
|
|
|
if [ "$ARCH" = "i586" ]; then
|
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "s390" ]; then
|
|
SLKCFLAGS="-O2"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "x86_64" ]; then
|
|
SLKCFLAGS="-O2 -fPIC"
|
|
LIBDIRSUFFIX="64"
|
|
elif [ "$ARCH" = "armv7hl" ]; then
|
|
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
|
|
LIBDIRSUFFIX=""
|
|
else
|
|
SLKCFLAGS="-O2"
|
|
LIBDIRSUFFIX=""
|
|
fi
|
|
|
|
TMP=${TMP:-/tmp}
|
|
PKG=$TMP/package-vulkan-sdk
|
|
|
|
GLSLANG_VERSION=$(echo glslang-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_HEADERS_VERSION=$(echo SPIRV-Headers-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_TOOLS_VERSION=$(echo SPIRV-Tools-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_HEADERS_VERSION=$(echo Vulkan-Headers-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_LOADER_VERSION=$(echo Vulkan-Loader-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_VALIDATIONLAYERS_VERSION=$(echo Vulkan-ValidationLayers-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
ROBIN_HOOD_VERSION=$(echo robin-hood-hashing-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_EXTENSIONLAYER_VERSION=$(echo Vulkan-ExtensionLayer-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_TOOLS_VERSION=$(echo Vulkan-Tools-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKANTOOLS_VERSION=$(echo VulkanTools-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SHADERC_VERSION=$(echo shaderc-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_CROSS_VERSION=$(echo SPIRV-Cross-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
GFXRECONSTRUCT_VERSION=$(echo gfxreconstruct-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
DXC_VERSION=$(echo DirectXShaderCompiler-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_REFLECT_VERSION=$(echo SPIRV-Reflect-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_PROFILES_VERSION=$(echo Vulkan-Profiles-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
|
|
# upstream builder order:
|
|
# - SPIRV-Headers
|
|
# - glslang
|
|
# - Vulkan-Headers
|
|
# - Vulkan-Loader
|
|
# - Vulkan-ValidationLayers
|
|
# - Vulkan-ExtensionLayer
|
|
# - Vulkan-Tools
|
|
# - VulkanTools
|
|
# - shaderc
|
|
# - SPIRV-Cross
|
|
# - gfxreconstruct
|
|
# - DirectXShaderCompiler
|
|
# - SPIRV-Reflect
|
|
# - Vulkan-Profiles
|
|
|
|
rm -rf $PKG
|
|
mkdir -p $TMP $PKG
|
|
|
|
cd $TMP
|
|
# Clear existing tmp sources:
|
|
rm -rf SPIRV-Headers-$SPIRV_HEADERS_VERSION \
|
|
glslang-sdk-${GLSLANG_VERSION} \
|
|
Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION \
|
|
Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION \
|
|
Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION \
|
|
Vulkan-ExtensionLayer-sdk-$VULKAN_EXTENSIONLAYER_VERSION \
|
|
Vulkan-Tools-sdk-$VULKAN_TOOLS_VERSION \
|
|
VulkanTools-sdk-$VULKANTOOLS_VERSION \
|
|
shaderc-$SHADERC_VERSION \
|
|
SPIRV-Cross-sdk-$SPIRV_CROSS_VERSION \
|
|
gfxreconstruct-sdk-$GFXRECONSTRUCT_VERSION \
|
|
DirectXShaderCompiler-$DXC_VERSION \
|
|
SPIRV-Reflect-sdk-$SPIRV_REFLECT_VERSION \
|
|
Vulkan-Profiles-sdk-$VULKAN_PROFILES_VERSION
|
|
|
|
tar xvf $CWD/SPIRV-Headers-$SPIRV_HEADERS_VERSION.tar.?z || exit 1
|
|
cd SPIRV-Headers-$SPIRV_HEADERS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
..
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/glslang-sdk-${GLSLANG_VERSION}.tar.?z || exit 1
|
|
cd glslang-sdk-$GLSLANG_VERSION/External
|
|
tar xvf $CWD/SPIRV-Tools-sdk-$SPIRV_TOOLS_VERSION.tar.?z || exit 1
|
|
mv SPIRV-Tools-sdk-$SPIRV_TOOLS_VERSION spirv-tools
|
|
cd spirv-tools/external
|
|
tar xvf $CWD/SPIRV-Headers-$SPIRV_HEADERS_VERSION.tar.?z || exit 1
|
|
mv SPIRV-Headers-$SPIRV_HEADERS_VERSION spirv-headers
|
|
|
|
cd $TMP/glslang-sdk-${GLSLANG_VERSION}
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# Fix LIBDIRSUFFIX
|
|
# for i in $(find . -name CMakeLists.txt); do
|
|
# sed -i "s|DESTINATION lib|DESTINATION \${CMAKE_INSTALL_LIBDIR}|" "$i"
|
|
# done
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=On \
|
|
-DSPIRV_TOOLS_BUILD_STATIC=Off \
|
|
..
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION.tar.?z || exit 1
|
|
cd Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr\
|
|
-DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
..
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/robin-hood-hashing-$ROBIN_HOOD_VERSION.tar.?z || exit 1
|
|
cd robin-hood-hashing-$ROBIN_HOOD_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DRH_STANDALONE_PROJECT="OFF" \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$TMP/robin-hood-hashing-$ROBIN_HOOD_VERSION/build/install || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION.tar.?z || exit 1
|
|
cd Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
-DCMAKE_INSTALL_DATADIR=/share \
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
-DBUILD_TESTS=Off \
|
|
-DBUILD_WSI_XLIB_SUPPORT=On \
|
|
-DBUILD_WSI_XCB_SUPPORT=On \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DGLSLANG_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DSPIRV_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_LAYER_SUPPORT_FILES=On \
|
|
-DROBIN_HOOD_HASHING_INSTALL_DIR="$TMP/robin-hood-hashing-$ROBIN_HOOD_VERSION/build/install/usr" \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-ExtensionLayer-sdk-$VULKAN_EXTENSIONLAYER_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-ExtensionLayer-sdk-$VULKAN_EXTENSIONLAYER_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
-DCMAKE_INSTALL_DATADIR=/share \
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
-DBUILD_TESTS=Off \
|
|
-DBUILD_WSI_XLIB_SUPPORT=On \
|
|
-DBUILD_WSI_XCB_SUPPORT=On \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_LAYER_SUPPORT_FILES=On \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Tools-sdk-$VULKAN_TOOLS_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Tools-sdk-$VULKAN_TOOLS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DGLSLANG_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
..
|
|
|
|
# make uses glslangValidator, which is built against a shared
|
|
# libglslang that isn't installed yet
|
|
export LD_LIBRARY_PATH=$PKG/usr/lib$LIBDIRSUFFIX
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/VulkanTools-sdk-$VULKANTOOLS_VERSION.tar.?z || exit 1
|
|
cd $TMP/VulkanTools-sdk-$VULKANTOOLS_VERSION
|
|
|
|
# Fix warning/error on gcc12 about uninitialized variables:
|
|
zcat $CWD/VulkanTools-sdk.gcc12.diff.gz | patch -p1 --verbose || exit 1
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# building jsoncpp
|
|
cd submodules/jsoncpp
|
|
python3 amalgamate.py
|
|
cd ../../
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_REGISTRY_PATH_HINT=$PKG/usr \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_VALIDATIONLAYERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
-DBUILD_TESTS=Off \
|
|
-DINSTALL_GTEST=Off \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/share/vulkan/config/VK_LAYER_LUNARG_device_simulation
|
|
install -m 644 ../layersvt/device_simulation_examples/sdk_sample_configs/*.json \
|
|
$PKG/usr/share/vulkan/config/VK_LAYER_LUNARG_device_simulation/
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/shaderc-$SHADERC_VERSION.tar.?z || exit 1
|
|
cd $TMP/shaderc-$SHADERC_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# Report correct versions in `glslc --version`
|
|
# git describe output collected in fetch-sources.sh
|
|
sed -i "s|\['git', 'describe'\]|\['cat', '.git-version'\]|" \
|
|
utils/update_build_version.py
|
|
|
|
# We're pointing shaderc to the sources we just compiled
|
|
# This won't avoid compiling them again, but slightly better than
|
|
# extracting them twice.
|
|
# Short of polluting the build system with the libraries we built
|
|
# so far, there's no (easy) way to point shaderc to the already
|
|
# built versions.
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DSHADERC_SKIP_TESTS=On \
|
|
-DSHADERC_SKIP_EXAMPLES=On \
|
|
-DSHADERC_SPIRV_TOOLS_DIR=$TMP/glslang-sdk-$GLSLANG_VERSION/External/spirv-tools \
|
|
-DSHADERC_GLSLANG_DIR=$TMP/glslang-sdk-$GLSLANG_VERSION \
|
|
-DSKIP_GLSLANG_INSTALL=On \
|
|
-DSKIP_SPIRV_TOOLS_INSTALL=On \
|
|
-DBUILD_SHARED_LIBS=On \
|
|
-DSPIRV_TOOLS_BUILD_STATIC=Off \
|
|
-DBUILD_TESTING=Off \
|
|
..
|
|
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/SPIRV-Cross-sdk-$SPIRV_CROSS_VERSION.tar.?z || exit 1
|
|
cd $TMP/SPIRV-Cross-sdk-$SPIRV_CROSS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# Set version
|
|
sed -i "s|version \"unknown\"|version \"$SPIRV_CROSS_VERSION\"|" \
|
|
CMakeLists.txt
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DSPIRV_CROSS_ENABLE_TESTS=Off \
|
|
-DSPIRV_CROSS_SHARED=On \
|
|
-DSPIRV_CROSS_FORCE_PIC=On \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/gfxreconstruct-sdk-$GFXRECONSTRUCT_VERSION.tar.?z || exit 1
|
|
cd $TMP/gfxreconstruct-sdk-$GFXRECONSTRUCT_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=stringop-overflow" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/DirectXShaderCompiler-$DXC_VERSION.tar.?z || exit 1
|
|
cd $TMP/DirectXShaderCompiler-$DXC_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build/docs
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=stringop-truncation" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include/dxc \
|
|
-DLLVM_LIBDIR_SUFFIX=$LIBDIRSUFFIX \
|
|
-DLLVM_BUILD_TOOLS="OFF" \
|
|
-C"../cmake/caches/PredefinedParams.cmake" \
|
|
-DHLSL_INCLUDE_TESTS="OFF" \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
|
|
# "make install" is essentially useless at this point
|
|
# It installs a bunch of unnecessary llvm files
|
|
# https://github.com/microsoft/DirectXShaderCompiler/issues/3276
|
|
|
|
# install steps taken from appveyor.yml
|
|
mkdir -p $PKG/usr/{bin,lib$LIBDIRSUFFIX,include}
|
|
cp -P bin/dxc* $PKG/usr/bin/
|
|
cp -P lib$LIBDIRSUFFIX/libdxcompiler.so* $PKG/usr/lib$LIBDIRSUFFIX/
|
|
cp -r ../include/dxc $PKG/usr/include/
|
|
|
|
# Remove CMakeLists.txt files in /usr/include
|
|
find $PKG/usr/include/dxc -name "CMakeLists.txt" | xargs rm -f
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/SPIRV-Reflect-sdk-$SPIRV_REFLECT_VERSION.tar.?z || exit 1
|
|
cd $TMP/SPIRV-Reflect-sdk-$SPIRV_REFLECT_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/include/SPIRV-Reflect/include/spirv/unified1
|
|
|
|
install -m 644 ../spirv_reflect.c $PKG/usr/include/SPIRV-Reflect/
|
|
install -m 644 ../spirv_reflect.h $PKG/usr/include/SPIRV-Reflect/
|
|
install -m 644 ../include/spirv/unified1/spirv.h \
|
|
$PKG/usr/include/SPIRV-Reflect/include/spirv/unified1/
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Profiles-sdk-$VULKAN_PROFILES_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Profiles-sdk-$VULKAN_PROFILES_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# Fix finding vulkan-loader on Slackware64
|
|
sed -i "s|PATH_SUFFIXES lib|PATH_SUFFIXES lib$LIBDIRSUFFIX|" \
|
|
CMakeLists.txt
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_SOURCE_DIR="$TMP/Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION" \
|
|
-DVULKAN_VALIDATIONLAYERS_SOURCE_DIR="$TMP/Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION" \
|
|
-DPROFILES_BUILD_TESTS="OFF" \
|
|
-DREGENERATE_JSONCPP="OFF" \
|
|
-DREGENERATE_PROFILES="OFF" \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
|
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
|
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Headers
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Tools
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/glslang
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Headers
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Loader
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ValidationLayers
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ExtensionLayer
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Tools
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/VulkanTools
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/shaderc
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Cross
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/gfxreconstruct
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/DirectXShaderCompiler
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Reflect
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Profiles
|
|
cp -a \
|
|
SPIRV-Headers-$SPIRV_HEADERS_VERSION/LICENSE* \
|
|
SPIRV-Headers-$SPIRV_HEADERS_VERSION/README* \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Headers
|
|
cp -a \
|
|
glslang-sdk-$GLSLANG_VERSION/External/spirv-tools/LICENSE* \
|
|
glslang-sdk-$GLSLANG_VERSION/External/spirv-tools/README* \
|
|
glslang-sdk-$GLSLANG_VERSION/External/spirv-tools/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Tools
|
|
cp -a \
|
|
glslang-sdk-$GLSLANG_VERSION/LICENSE* \
|
|
glslang-sdk-$GLSLANG_VERSION/README* \
|
|
glslang-sdk-$GLSLANG_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/glslang
|
|
cp -a \
|
|
Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION/LICENSE* \
|
|
Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION/README* \
|
|
Vulkan-Headers-sdk-$VULKAN_HEADERS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Headers
|
|
cp -a \
|
|
Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION/LICENSE* \
|
|
Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION/README* \
|
|
Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION/*.md \
|
|
Vulkan-Loader-sdk-$VULKAN_LOADER_VERSION/loader/LoaderAndLayerInterface.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Loader
|
|
cp -a \
|
|
Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION/LICENSE* \
|
|
Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION/README* \
|
|
Vulkan-ValidationLayers-sdk-$VULKAN_VALIDATIONLAYERS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ValidationLayers
|
|
cp -a \
|
|
Vulkan-ExtensionLayer-sdk-$VULKAN_EXTENSIONLAYER_VERSION/LICENSE* \
|
|
Vulkan-ExtensionLayer-sdk-$VULKAN_EXTENSIONLAYER_VERSION/README* \
|
|
Vulkan-ExtensionLayer-sdk-$VULKAN_EXTENSIONLAYER_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ExtensionLayer
|
|
cp -a \
|
|
Vulkan-Tools-sdk-$VULKAN_TOOLS_VERSION/LICENSE* \
|
|
Vulkan-Tools-sdk-$VULKAN_TOOLS_VERSION/README* \
|
|
Vulkan-Tools-sdk-$VULKAN_TOOLS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Tools
|
|
cp -a \
|
|
VulkanTools-sdk-$VULKANTOOLS_VERSION/LICENSE* \
|
|
VulkanTools-sdk-$VULKANTOOLS_VERSION/README* \
|
|
VulkanTools-sdk-$VULKANTOOLS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/VulkanTools
|
|
cp -a \
|
|
shaderc-$SHADERC_VERSION/AUTHORS \
|
|
shaderc-$SHADERC_VERSION/LICENSE* \
|
|
shaderc-$SHADERC_VERSION/README* \
|
|
shaderc-$SHADERC_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/shaderc
|
|
cp -a \
|
|
SPIRV-Cross-sdk-$SPIRV_CROSS_VERSION/LICENSE* \
|
|
SPIRV-Cross-sdk-$SPIRV_CROSS_VERSION/README* \
|
|
SPIRV-Cross-sdk-$SPIRV_CROSS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Cross
|
|
cp -a \
|
|
gfxreconstruct-sdk-$GFXRECONSTRUCT_VERSION/LICENSE* \
|
|
gfxreconstruct-sdk-$GFXRECONSTRUCT_VERSION/README* \
|
|
gfxreconstruct-sdk-$GFXRECONSTRUCT_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/gfxreconstruct
|
|
cp -a \
|
|
DirectXShaderCompiler-$DXC_VERSION/LICENSE* \
|
|
DirectXShaderCompiler-$DXC_VERSION/README* \
|
|
DirectXShaderCompiler-$DXC_VERSION/ThirdPartyNotices.txt \
|
|
DirectXShaderCompiler-$DXC_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/DirectXShaderCompiler
|
|
cp -a \
|
|
SPIRV-Reflect-sdk-$SPIRV_REFLECT_VERSION/LICENSE* \
|
|
SPIRV-Reflect-sdk-$SPIRV_REFLECT_VERSION/README* \
|
|
SPIRV-Reflect-sdk-$SPIRV_REFLECT_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Reflect
|
|
cp -a \
|
|
Vulkan-Profiles-sdk-$VULKAN_PROFILES_VERSION/LICENSE* \
|
|
Vulkan-Profiles-sdk-$VULKAN_PROFILES_VERSION/README* \
|
|
Vulkan-Profiles-sdk-$VULKAN_PROFILES_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Profiles
|
|
|
|
mkdir -p $PKG/install
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cd $PKG
|
|
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|