[arch-commits] Commit in primus_vk/repos/community-x86_64 (PKGBUILD PKGBUILD)

Giancarlo Razzolini grazzolini at archlinux.org
Sun Sep 22 02:15:17 UTC 2019


    Date: Sunday, September 22, 2019 @ 02:15:16
  Author: grazzolini
Revision: 511459

archrelease: copy trunk to community-x86_64

Added:
  primus_vk/repos/community-x86_64/PKGBUILD
    (from rev 511458, primus_vk/trunk/PKGBUILD)
Deleted:
  primus_vk/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   80 +++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 52 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-22 02:13:12 UTC (rev 511458)
+++ PKGBUILD	2019-09-22 02:15:16 UTC (rev 511459)
@@ -1,28 +0,0 @@
-# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=primus_vk
-pkgver=1.2
-pkgrel=1
-pkgdesc="Nvidia Vulkan offloading for Bumblebee"
-arch=('x86_64')
-url="https://github.com/felixdoerre/primus_vk"
-license=('BSD')
-depends=('nvidia-utils' 'bumblebee' 'vulkan-icd-loader' 'primus')
-makedepends=('vulkan-validation-layers')
-source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('48c03a2f0fdb7d4609c3f6e0bf24ee2306805330e381722a2fd0485c9916daa802725117c8b3cc0d13d80376c7384193ea9aff69c9e13a4f48becf6dbf94d0f0')
-
-build() {
-  cd ${pkgname}-${pkgver}
-
-  export CXXFLAGS+=' -DNV_DRIVER_PATH=\"/usr/lib/libGLX_nvidia.so.0\"'
-  make all primus_vk_diag
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  make PREFIX="${pkgdir}"/usr install
-  install -Dm755 primus_vk_diag -t "${pkgdir}"/usr/bin/
-  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}

Copied: primus_vk/repos/community-x86_64/PKGBUILD (from rev 511458, primus_vk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-22 02:15:16 UTC (rev 511459)
@@ -0,0 +1,52 @@
+# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=primus_vk
+pkgver=1.2
+pkgrel=3
+pkgdesc="Nvidia Vulkan offloading for Bumblebee"
+arch=('x86_64')
+url="https://github.com/felixdoerre/primus_vk"
+license=('BSD')
+depends=('nvidia-utils' 'bumblebee' 'vulkan-icd-loader' 'primus')
+makedepends=('git' 'vulkan-validation-layers')
+source=("${pkgname}-${pkgver}::git+${url}.git#tag=v${pkgver}")
+sha512sums=('SKIP')
+
+_backports=(
+  #fix queue creation
+  '9b8c4492a3e9c8652a366a7acf14b6a28584a150'
+)
+
+_reverts=(
+)
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  local _c
+  
+  for _c in "${_backports[@]}"; do
+    git log --oneline -1 "${_c}"  
+    git cherry-pick -n "${_c}"
+  done
+
+  for _c in "${_reverts[@]}"; do
+    git log --oneline -1 "${_c}"
+    git revert -n "${_c}"
+  done
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  export CXXFLAGS+=' -DNV_DRIVER_PATH=\"/usr/lib/libGLX_nvidia.so.0\"'
+  make all primus_vk_diag
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make PREFIX="${pkgdir}"/usr install
+  install -Dm755 primus_vk_diag -t "${pkgdir}"/usr/bin/
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}


More information about the arch-commits mailing list