void-packages/srcpkgs/exodriver/template

27 lines
777 B
Bash
Raw Normal View History

2021-07-01 05:13:53 +00:00
# Template file for 'exodriver'
pkgname=exodriver
version=2.6.0
revision=1
build_wrksrc=liblabjackusb
build_style=gnu-makefile
make_use_env=yes
makedepends="libusb-devel"
short_desc="LabJack U3, U6, and UE9 low-level driver"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="MIT, X11"
homepage="https://labjack.com/support/software/installers/exodriver"
distfiles="https://github.com/labjack/exodriver/archive/refs/tags/v${version}.tar.gz"
checksum=d2ccf992bf42b50e7c009ae3d9d3d3191a67bfc8a2027bd54ba4cbd4a80114b2
pre_install() {
export LINK_SO=1
}
post_install() {
vmkdir usr/lib/udev/rules.d
vmkdir usr/share/examples/${pkgname}
vcopy ../90-labjack.rules usr/lib/udev/rules.d/
vlicense ../README
cp -r ../examples/* ${DESTDIR}/usr/share/examples/${pkgname}
}