mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/vulkan-tools to 1.1.79+6811+b7c389c9-1
This commit is contained in:
parent
ad0d942de1
commit
30116aea80
1 changed files with 20 additions and 58 deletions
|
@ -2,32 +2,28 @@
|
||||||
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
|
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - use suffix=32 in packaging for 32-bit ARM architectures
|
# - cmake with -DBUILD_CUBE=OFF
|
||||||
# - strip -m32 from CMakeLists
|
|
||||||
|
|
||||||
pkgbase=vulkan-tools
|
pkgname=vulkan-tools
|
||||||
pkgname=(vulkan-trace vulkan-extra-layers)
|
pkgver=1.1.79+6811+b7c389c9
|
||||||
pkgver=1.1.73.0
|
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url="http://lunarg.com/"
|
url="https://www.khronos.org/vulkan/"
|
||||||
|
pkgdesc="Vulkan Utilities and Tools"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=()
|
depends=(gcc-libs libxcb vulkan-icd-loader)
|
||||||
makedepends=(git cmake wget python-lxml libxcb libxrandr imagemagick qt5-svg)
|
makedepends=(git cmake python vulkan-headers libx11 wayland)
|
||||||
source=("git+https://github.com/LunarG/VulkanTools#tag=sdk-${pkgver}")
|
source=("git+https://github.com/KhronosGroup/Vulkan-Tools.git#commit=b7c389c9d3efe5cea722eb7395fb70529dd27566")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
prepare() {
|
pkgver() {
|
||||||
cd ${srcdir}
|
cd "${srcdir}/Vulkan-Tools"
|
||||||
ln -s VulkanTools "VulkanTools-sdk-${pkgver}"
|
|
||||||
cd "${srcdir}/VulkanTools-sdk-${pkgver}"
|
echo 1.1.79+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
|
||||||
sed -i 's/-m32//g' vktrace/CMakeLists.txt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/VulkanTools-sdk-${pkgver}"
|
cd "${srcdir}/Vulkan-Tools"
|
||||||
|
|
||||||
./update_external_sources.sh
|
|
||||||
|
|
||||||
rm -rf build ; mkdir build ; cd build
|
rm -rf build ; mkdir build ; cd build
|
||||||
cmake \
|
cmake \
|
||||||
|
@ -39,55 +35,21 @@ build() {
|
||||||
-DBUILD_WSI_XLIB_SUPPORT=On \
|
-DBUILD_WSI_XLIB_SUPPORT=On \
|
||||||
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
||||||
-DBUILD_WSI_MIR_SUPPORT=Off \
|
-DBUILD_WSI_MIR_SUPPORT=Off \
|
||||||
-DBUILD_TESTS=OFF \
|
-DBUILD_CUBE=OFF \
|
||||||
-DBUILD_DEMOS=OFF \
|
-DBUILD_VULKANINFO=ON \
|
||||||
-DBUILD_VIA=OFF \
|
-DBUILD_ICD=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
..
|
..
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package_vulkan-trace() {
|
package() {
|
||||||
pkgdesc="Vulkan tracing and replaying tools"
|
|
||||||
depends=(vulkan-icd-loader qt5-svg)
|
|
||||||
groups=('vulkan-devel')
|
groups=('vulkan-devel')
|
||||||
|
|
||||||
cd "${srcdir}/VulkanTools-sdk-${pkgver}"
|
cd "${srcdir}/Vulkan-Tools/build"
|
||||||
|
|
||||||
[[ $CARCH == i686 || $CARCH == arm || $CARCH == armv6h || $CARCH == armv7h ]] && suffix=32
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
install -dm755 ${pkgdir}/usr/{bin,lib}
|
|
||||||
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
|
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
|
||||||
install -dm755 ${pkgdir}/usr/share/vulkan/explicit_layer.d
|
install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
|
||||||
|
|
||||||
install -m755 build/vktrace/{vkreplay,vktrace}${suffix} ${pkgdir}/usr/bin/
|
|
||||||
install -m755 build/vktrace/vktraceviewer${suffix} ${pkgdir}/usr/bin/
|
|
||||||
install -m755 build/vktrace/libVkLayer_vktrace_layer${suffix}.so ${pkgdir}/usr/lib/
|
|
||||||
|
|
||||||
sed 's@../vktrace/libVkLayer_vktrace_layer.so@libVkLayer_vktrace_layer'${suffix}'.so@'\
|
|
||||||
vktrace/vktrace_layer/linux/VkLayer_vktrace_layer.json \
|
|
||||||
> ${pkgdir}/usr/share/vulkan/explicit_layer.d/VkLayer_vktrace_layer.json
|
|
||||||
|
|
||||||
install -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
|
|
||||||
}
|
|
||||||
|
|
||||||
package_vulkan-extra-layers() {
|
|
||||||
pkgdesc="Extra layers for Vulkan development"
|
|
||||||
depends=(vulkan-validation-layers)
|
|
||||||
groups=('vulkan-devel')
|
|
||||||
|
|
||||||
cd "${srcdir}/VulkanTools-sdk-${pkgver}"
|
|
||||||
|
|
||||||
install -dm755 ${pkgdir}/usr/lib
|
|
||||||
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
|
|
||||||
install -dm755 ${pkgdir}/usr/share/vulkan/explicit_layer.d
|
|
||||||
|
|
||||||
install -m644 build/layersvt/*.so ${pkgdir}/usr/lib
|
|
||||||
|
|
||||||
# fix library paths
|
|
||||||
for i in layersvt/linux/*.json ; do
|
|
||||||
sed 's@./@@' $i > ${pkgdir}/usr/share/vulkan/explicit_layer.d/$(basename $i)
|
|
||||||
done
|
|
||||||
|
|
||||||
install -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue