New package: exodriver-2.6.0

This commit is contained in:
Toyam Cox 2021-07-01 01:13:53 -04:00
parent 0819324900
commit 3f7567a633
3 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- ./liblabjackusb/Makefile.orig 2021-06-29 19:26:03.060647459 -0400
+++ ./liblabjackusb/Makefile 2021-06-29 19:25:31.946314812 -0400
@@ -7,9 +7,9 @@
VERSION = 2.6.0
PREFIX ?= /usr/local
-DESTINATION = $(PREFIX)/lib
+DESTINATION = $(DESTDIR)$(PREFIX)/lib
HEADER = labjackusb.h
-HEADER_DESTINATION = $(PREFIX)/include
+HEADER_DESTINATION = $(DESTDIR)$(PREFIX)/include
LIBFLAGS = -lusb-1.0 -lc
ADD_LDCONFIG_PATH = ./add_ldconfig_path.sh

View file

@ -0,0 +1,11 @@
--- ./liblabjackusb/Makefile.orig 2021-07-01 00:54:29.910491840 -0400
+++ ./liblabjackusb/Makefile 2021-07-01 00:45:41.675599194 -0400
@@ -71,7 +71,7 @@
ldconfig
endif
ifeq ($(LINK_SO),1)
- ln -i -s $(DESTINATION)/$(TARGET) $(DESTINATION)/liblabjackusb.$(ext)
+ ln -i -s $(TARGET) $(DESTINATION)/liblabjackusb.$(ext)
endif
clean:

View file

@ -0,0 +1,26 @@
# 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}
}