2023-01-16 13:52:58 +00:00
|
|
|
# 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 --release
|
|
|
|
}
|
|
|
|
|
|
|
|
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}/rFactorOverlay.json "${pkgdir}"/usr/share/vulkan/implicit_layer.d/rFactorOverlay.json
|
2023-01-17 15:11:48 +00:00
|
|
|
|
|
|
|
# copy font png
|
|
|
|
install -Dm644 ${_pkgbase}/font.png "${pkgdir}"/usr/share/vulkan_rf2_layer/font.png
|
2023-01-16 13:52:58 +00:00
|
|
|
}
|