Commit 143d46c4 authored by Francesco Marinucci's avatar Francesco Marinucci

lib32-vulkan-icd-loader: imported as a depepndency for wine

parent 74f72b36
Pipeline #3779 passed with stages
in 2 minutes and 15 seconds
pkgname=lib32-vulkan-icd-loader
pkgver=1.1.92
pkgrel=1
arch=(x86_64)
pkgdesc="Vulkan Installable Client Driver (ICD) Loader"
url="https://www.khronos.org/vulkan/"
license=('custom')
makedepends=(cmake python3-lxml lib32-libx11 lib32-libxrandr lib32-wayland vulkan-headers git)
depends=(lib32-glibc vulkan-icd-loader)
optdepends=('lib32-vulkan-driver: packaged vulkan driver') # vulkan-driver: vulkan-intel/vulkan-radeon/nvidia-utils/....
source=("${pkgname}+${pkgver}"::"https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-${pkgver}.tar.gz")
md5sums=('ab5b62084e21d0f1230bfc5d584cd88a')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/Vulkan-Loader-sdk-${pkgver}"
rm -rf build ; mkdir build ; cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_DATADIR=/share \
-DCMAKE_SKIP_RPATH=True \
-DBUILD_TESTS=Off \
-DBUILD_WSI_XCB_SUPPORT=On \
-DBUILD_WSI_XLIB_SUPPORT=On \
-DBUILD_WSI_WAYLAND_SUPPORT=On \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd "${srcdir}/Vulkan-Loader-sdk-${pkgver}/build"
make DESTDIR="${pkgdir}" install
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment