nvidia-merged/packages/vgpu-unlock-rs/PKGBUILD

41 lines
1.4 KiB
Text
Raw Normal View History

# Maintainer: Lily Tsuru <lily.modeco80@protonmail.ch>
pkgname=vgpu-unlock-rs
pkgver=2.5.0
pkgrel=1
pkgdesc='Rust vGPU unlock user-mode library (injected into nvidia-vgpud and nvidia-vgpu-mgr)'
url='https://github.com/mbilker/vgpu_unlock-rs'
arch=('x86_64')
makedepends=('git' 'rust')
license=('MIT')
options=('!strip')
#groups=('nvidia-merged')
# This is post 2.5.0, but..
_vgpu_unlock_rev="ba66a6c6eeb16eb8e2d2ec368d6605b974070d4b"
source=(
"git+https://github.com/mbilker/vgpu_unlock-rs.git#commit=${_vgpu_unlock_rev}"
'vgpu_unlock-rs.conf'
)
sha256sums=('5ac78e9c1cd940917c41db74fab893f1181559e9993ab041b07cc82d2c020b60'
'eafb28461fbe8a37cef3121f4b0ad53ad459ba389d9afb91e79c6c8d93ba5ea9')
build() {
cd "${srcdir}/vgpu_unlock-rs"
cargo build -j `nproc` --release
}
package() {
install -D -m755 "vgpu_unlock-rs/target/release/libvgpu_unlock_rs.so" "${pkgdir}/usr/lib/vgpu_unlock_rs/libvgpu_unlock_rs.so"
# vGPU service overrides (I think it's cleaner to put them in this package. )
install -D -m644 "${srcdir}/vgpu_unlock-rs.conf" "${pkgdir}/usr/lib/systemd/system/nvidia-vgpud.service.d/30-vgpu_unlock-rs.conf"
install -D -m644 "${srcdir}/vgpu_unlock-rs.conf" "${pkgdir}/usr/lib/systemd/system/nvidia-vgpu-mgr.service.d/30-vgpu_unlock-rs.conf"
install -D -m644 "vgpu_unlock-rs/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}