Add pkgbuild
This commit is contained in:
parent
0e446641c5
commit
f70cd3f1c8
3 changed files with 33 additions and 1 deletions
29
pkgbuild/PKGBUILD
Normal file
29
pkgbuild/PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# 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
|
||||
}
|
3
pkgbuild/README.md
Normal file
3
pkgbuild/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Build package for arch-based systems
|
||||
* simply build it: `makepkg`
|
||||
* also install it directly afterwards: `makepkg -i`
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue