[arch-commits] Commit in (4 files)

Giancarlo Razzolini grazzolini at archlinux.org
Tue Apr 16 17:52:28 UTC 2019


    Date: Tuesday, April 16, 2019 @ 17:52:27
  Author: grazzolini
Revision: 451831

newpkg: primus_vk

Added:
  primus_vk/
  primus_vk/repos/
  primus_vk/trunk/
  primus_vk/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: primus_vk/trunk/PKGBUILD
===================================================================
--- primus_vk/trunk/PKGBUILD	                        (rev 0)
+++ primus_vk/trunk/PKGBUILD	2019-04-16 17:52:27 UTC (rev 451831)
@@ -0,0 +1,31 @@
+# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
+
+pkgname=primus_vk
+pkgver=1.0
+pkgrel=1
+pkgdesc="Primus-Vk Nvidia Vulkan offloading for Bumblebee"
+arch=('x86_64')
+url="https://github.com/felixdoerre/$pkgname"
+license=('BSD')
+depends=('nvidia-utils' 'bumblebee' 'vulkan-icd-loader' 'primus')
+makedepends=('vulkan-validation-layers')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/felixdoerre/${pkgname}/archive/v${pkgver}.tar.gz)
+sha512sums=('5d4bb4be4e958f039144d90c33dc94dcdfcbaf0925f1f70676ae46ea3022d4a11ba07fa23974b434188fad0c54f4df1c590d20b76186634a852a99203e3a76c1')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  export CXXFLAGS+=' -DNV_DRIVER_PATH=\"/usr/lib/libGLX_nvidia.so.0\"'
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  install -D libnv_vulkan_wrapper.so "$pkgdir"/usr/lib/libnv_vulkan_wrapper.so
+  install -D libprimus_vk.so "$pkgdir"/usr/lib/libprimus_vk.so
+  install -Dm644 primus_vk.json "$pkgdir"/usr/share/vulkan/implicit_layer.d/primus_vk.json
+  install -Dm644 nv_vulkan_wrapper.json "$pkgdir"/usr/share/vulkan/icd.d/nv_vulkan_wrapper.json
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+  install -Dm755 pvkrun.in.sh "$pkgdir"/usr/bin/pvkrun
+}


More information about the arch-commits mailing list