blob: db3cfeca1f4b0f533ca678c4083af8c9f0517232 (
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
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
_pkgname=latencyflex
pkgname=$_pkgname-bin
pkgver=0.1.1
pkgrel=1
pkgdesc="Vendor agnostic latency reduction middleware. An alternative to NVIDIA Reflex (binary release)"
arch=('x86_64')
url="https://github.com/ishitatsuyuki/LatencyFleX"
license=('GPL3')
provides=("$_pkgname")
conflicts=("$_pkgname" "$_pkgname-git")
source=("$url/releases/download/v$pkgver/$_pkgname-v$pkgver.tar.xz")
sha256sums=('c992ebd2f43c99ab4a84a6ffce692d9aae4cc2571536a5854ae2e79b6951e78a')
prepare() {
# Edit the lib path in the latencyflex.json file
cd $_pkgname-v$pkgver/layer/usr/share/vulkan/implicit_layer.d
sed -i -E "s| \"library_path\": \"/usr/lib/x86_64-linux-gnu/liblatencyflex_layer.so\",| \"library_path\": \"/usr/lib/liblatencyflex_layer.so\",|g" $_pkgname.json
}
package() {
cd $_pkgname-v$pkgver
install -Dm644 layer/usr/share/vulkan/implicit_layer.d/$_pkgname.json -t "$pkgdir/usr/share/vulkan/implicit_layer.d"
install -Dm755 layer/usr/lib/x86_64-linux-gnu/lib${_pkgname}_layer.so -t "$pkgdir/usr/lib"
cp -r wine/usr "$pkgdir"
}
|