Skip to content

Commit

Permalink
New package: exodriver-2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaelatern committed Jul 1, 2021
1 parent bbea727 commit cbce622
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions srcpkgs/exodriver/patches/destdir.patch
@@ -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
11 changes: 11 additions & 0 deletions srcpkgs/exodriver/patches/link-so-correctly.patch
@@ -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:
26 changes: 26 additions & 0 deletions srcpkgs/exodriver/template
@@ -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}
}

0 comments on commit cbce622

Please sign in to comment.