You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

4 years ago
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
pkgname=vulkan-icd-loader
pkgver=1.2.174
pkgrel=1
4 years ago
arch=(x86_64)
pkgdesc="Vulkan Installable Client Driver (ICD) Loader"
url="https://www.khronos.org/vulkan/"
license=('custom')
makedepends=('cmake' 'python-lxml' 'libx11' 'libxrandr' 'wayland' 'vulkan-headers' 'git')
4 years ago
depends=(glibc)
optdepends=('vulkan-driver: packaged vulkan driver') # vulkan-driver: vulkan-intel/vulkan-radeon/nvidia-utils/....
provides=('libvulkan.so')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Loader/archive/v${pkgver}.tar.gz")
#source=("git+https://github.com/KhronosGroup/Vulkan-Loader.git#commit=8df99b31f01ef1ef7fb17082dd577e77f20cb050")
sha256sums=('c39a660da13450cb5e2d1dc571749d0e9a4f831998b20a7ad9fc7f2c99e1bb0b')
4 years ago
#pkgver() {
# cd "${srcdir}"/Vulkan-Loader*
#
# echo 1.1.106+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
#}
4 years ago
build() {
cd "${srcdir}"/Vulkan-Loader*
4 years ago
rm -rf build ; mkdir build ; cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DVULKAN_HEADERS_INSTALL_DIR=/usr \
4 years ago
-DCMAKE_INSTALL_LIBDIR=lib \
-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*/build
4 years ago
make DESTDIR="${pkgdir}" install
install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
4 years ago
install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
}