void-packages/srcpkgs/openrgb/template

24 lines
774 B
Bash

# Template file for 'openrgb'
pkgname=openrgb
version=0.5
revision=2
wrksrc=OpenRGB-release_${version}
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools git pkg-config"
makedepends="qt5-devel libusb-devel hidapi-devel"
short_desc="Open source RGB lighting control"
maintainer="Neel Chotai <neel@chot.ai>"
license="GPL-2.0-only"
homepage="https://gitlab.com/CalcProgrammer1/OpenRGB"
distfiles="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${version}/OpenRGB-release_${version}.tar.gz"
checksum=e227dedfe0c3aa8f3bcb0c4149aa5feb1db4b0429a151423d74c0103c55d7d26
pre_build() {
sed -i 's|rules.path=/lib|rules.path=/usr/lib|g' OpenRGB.pro
}
post_install() {
vdoc README.md
vinstall ${FILESDIR}/openrgb.conf 644 usr/lib/modules-load.d
vsv openrgb
}