Package Details: cyusb-git r20.14f18d1-2

Git Clone URL: https://aur.archlinux.org/cyusb-git.git (read-only, click to copy)
Package Base: cyusb-git
Description: None
Upstream URL: https://github.com/Ho-Ro/cyusb_linux
Licenses: unknown
Submitter: effeffe
Maintainer: effeffe
Last Packager: effeffe
Votes: 1
Popularity: 0.000000
First Submitted: 2023-07-07 10:24 (UTC)
Last Updated: 2023-07-07 10:30 (UTC)

Dependencies (0)

Required by (0)

Sources (2)

Latest Comments

erikkallen commented on 2024-08-06 11:52 (UTC) (edited on 2024-08-06 11:52 (UTC) by erikkallen)

Would not build for me, seems that cyusb should be libcyusb

diff --git a/.SRCINFO b/.SRCINFO
index 39d5735..4c28af4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
 pkgbase = cyusb-git
        pkgver = r20.14f18d1
-       pkgrel = 2
+       pkgrel = 3
        url = https://github.com/Ho-Ro/cyusb_linux
        arch = i686
        arch = x86_64
        license = unknown
        source = git+https://github.com/Ho-Ro/cyusb_linux.git
        source = Makefile.patch
+       source = Makefile-src.patch
+       md5sums = SKIP
        md5sums = SKIP
        md5sums = SKIP

diff --git a/PKGBUILD b/PKGBUILD
index b392954..19e7eb0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,10 +11,12 @@ depends=()
 source=(
   'git+https://github.com/Ho-Ro/cyusb_linux.git'
   'Makefile.patch'
+  'Makefile-src.patch'
 )
 md5sums=(
   'SKIP'
   'SKIP'
+  'SKIP'
 )

Makefile-src.patch:

diff --git a/src/Makefile b/src/Makefile
index ec3b781..9595493 100644
--- src/cyusb_linux/src/Makefile
+++ src/cyusb_linux/src/Makefile
@@ -1,20 +1,20 @@
 all:
-   g++ -o 00_fwload            00_fwload.cpp            -L ../lib -l cyusb
-   g++ -o 01_getdesc           01_getdesc.cpp           -L ../lib -l cyusb -l usb-1.0
-   g++ -o 03_getconfig         03_getconfig.cpp         -L ../lib -l cyusb -l usb-1.0
-   g++ -o 04_kerneldriver      04_kerneldriver.cpp      -L ../lib -l cyusb -l usb-1.0
-   g++ -o 05_claiminterface    05_claiminterface.cpp    -L ../lib -l cyusb -l usb-1.0
-   g++ -o 06_setalternate      06_setalternate.cpp      -L ../lib -l cyusb -l usb-1.0
-   g++ -o 08_cybulk            08_cybulk.cpp            -L ../lib -l cyusb -l usb-1.0 -l pthread
-   g++ -o 09_cyusb_performance 09_cyusb_performance.cpp -L ../lib -l cyusb -l usb-1.0
-   g++ -o download_fx2         download_fx2.cpp         -L ../lib -l cyusb -l usb-1.0
-   g++ -o download_fx3         download_fx3.cpp         -L ../lib -l cyusb -l usb-1.0
-   g++ -o cyusbd               cyusbd.cpp               -L ../lib -l cyusb
-   gcc -o config_parser        config_parser.c          -L ../lib -l cyusb
+   g++ -o 00_fwload            00_fwload.cpp            -L ../lib -l libcyusb
+   g++ -o 01_getdesc           01_getdesc.cpp           -L ../lib -l libcyusb -l usb-1.0
+   g++ -o 03_getconfig         03_getconfig.cpp         -L ../lib -l libcyusb -l usb-1.0
+   g++ -o 04_kerneldriver      04_kerneldriver.cpp      -L ../lib -l libcyusb -l usb-1.0
+   g++ -o 05_claiminterface    05_claiminterface.cpp    -L ../lib -l libcyusb -l usb-1.0
+   g++ -o 06_setalternate      06_setalternate.cpp      -L ../lib -l libcyusb -l usb-1.0
+   g++ -o 08_cybulk            08_cybulk.cpp            -L ../lib -l libcyusb -l usb-1.0 -l pthread
+   g++ -o 09_cyusb_performance 09_cyusb_performance.cpp -L ../lib -l libcyusb -l usb-1.0
+   g++ -o download_fx2         download_fx2.cpp         -L ../lib -l libcyusb -l usb-1.0
+   g++ -o download_fx3         download_fx3.cpp         -L ../lib -l libcyusb -l usb-1.0
+   g++ -o cyusbd               cyusbd.cpp               -L ../lib -l libcyusb
+   gcc -o config_parser        config_parser.c          -L ../lib -l libcyusb

 clean:
    rm -f 00_fwload 01_getdesc 03_getconfig 04_kerneldriver 05_claiminterface 06_setalternate
-   rm -f 08_cybulk 09_cyusb_performance download_fx2 download_fx3 cyusbd config_parser
+   rm -f 08_cybulk 09_cyusb_performance download_fx2 download_fx3 cyusbd config_parser

 help:
    @echo   'make       would compile all source programs in this directory

Hope it helps someone