blob: 70474749a041e56d6f9f5623fe9a3bdc0cf3bbfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Uladzimir Panasiuk <v.s.panasyuk at google dot com>
_pkgname=primus-vk
pkgname=lib32-$_pkgname-git
pkgver=r71.706bd87
pkgrel=1
pkgdesc="Primus-Vk Nvidia Vulkan offloading for Bumblebee, 32bit libs"
arch=('x86_64')
url="https://github.com/felixdoerre/primus_vk"
license=('BSD')
depends=('lib32-nvidia-utils' 'bumblebee' 'primus-vk-git' 'lib32-vulkan-icd-loader' 'lib32-primus')
makedepends=('vulkan-validation-layers' 'git')
source=(git+https://github.com/felixdoerre/primus_vk)
md5sums=('SKIP')
pkgver() {
cd "${_pkgname/-/_}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname/-/_}"
CXXFLAGS+=' -m32 -DNV_DRIVER_PATH=\"/usr/lib32/libGLX_nvidia.so.0\"'
make CXXFLAGS="$CXXFLAGS"
}
package() {
cd "${_pkgname/-/_}"
install -Dm755 libnv_vulkan_wrapper.so "$pkgdir"/usr/lib32/libnv_vulkan_wrapper.so
install -Dm755 libprimus_vk.so "$pkgdir"/usr/lib32/libprimus_vk.so
}
|