rFactor2_vk_hud/resources/pkgbuild/PKGBUILD

30 lines
756 B
Text
Raw Normal View History

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
2023-01-30 14:12:04 +00:00
cargo build --profile release-lto
2023-01-16 13:52:58 +00:00
}
package() {
# copy lib
2023-01-30 14:15:52 +00:00
install -Dm755 ${_pkgbase}/target/release-lto/libvk_layer_rs.so "${pkgdir}"/usr/lib/libvk_layer_rs.so
2023-01-16 13:52:58 +00:00
# copy layer discovery info file
2023-01-23 18:41:51 +00:00
install -Dm644 ${_pkgbase}/resources/rFactorOverlay.json "${pkgdir}"/usr/share/vulkan/implicit_layer.d/rFactorOverlay.json
2023-01-16 13:52:58 +00:00
}