diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD new file mode 100644 index 0000000..890cef1 --- /dev/null +++ b/pkgbuild/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: hodasemi +_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 +} diff --git a/pkgbuild/README.md b/pkgbuild/README.md new file mode 100644 index 0000000..0194c15 --- /dev/null +++ b/pkgbuild/README.md @@ -0,0 +1,3 @@ +# Build package for arch-based systems +* simply build it: `makepkg` +* also install it directly afterwards: `makepkg -i` \ No newline at end of file diff --git a/rFactorOverlay.json b/rFactorOverlay.json index f49349b..aa6d62e 100644 --- a/rFactorOverlay.json +++ b/rFactorOverlay.json @@ -4,7 +4,7 @@ "name": "VK_LAYER_rFactor2_overlay", "type": "GLOBAL", "api_version": "1.3.0", - "library_path": "$HOME/Dokumente/Workspace/vk_layer_rs/target/debug/libvk_layer_rs.so", + "library_path": "/usr/lib/libvk_layer_rs.so", "implementation_version": "1", "description": "Vulkan Hud Overlay", "functions": {