29 lines
752 B
Bash
29 lines
752 B
Bash
# Maintainer: hodasemi <michaelh.95 at t-online dot de>
|
|
_pkgbase=rFactor2_vk_hud
|
|
pkgname="${_pkgbase}"
|
|
pkgver=0.1
|
|
pkgrel=1
|
|
pkgdesc="Vulkan overlay layer for rFactor 2"
|
|
arch=('x86_64')
|
|
url="https://gavania.de/hodasemi/${_pkgbase}"
|
|
license=('GPL-3.0')
|
|
makedepends=('rust' 'ctags' 'glslang')
|
|
depends=()
|
|
conflicts=("${_pkgbase}")
|
|
source=("git+${url}")
|
|
md5sums=(SKIP)
|
|
|
|
build() {
|
|
cd ${_pkgbase}
|
|
|
|
# build binaries
|
|
cargo build --profile release-lto
|
|
}
|
|
|
|
package() {
|
|
# copy lib
|
|
install -Dm755 ${_pkgbase}/target/release/libvk_layer_rs.so "${pkgdir}"/usr/lib/libvk_layer_rs.so
|
|
|
|
# copy layer discovery info file
|
|
install -Dm644 ${_pkgbase}/resources/rFactorOverlay.json "${pkgdir}"/usr/share/vulkan/implicit_layer.d/rFactorOverlay.json
|
|
}
|