diff --git a/assets/var/gnu/libusb.md b/assets/var/gnu/libusb.md index fb9fe27..0b42c56 100644 --- a/assets/var/gnu/libusb.md +++ b/assets/var/gnu/libusb.md @@ -1,6 +1,10 @@ libusb 1.0.3 = -https://github.com/libusb/libusb/releases/download/v1.0.30/libusb-1.0.30.7z +https://github.com/libusb/libusb/archive/refs/tags/v1.0.30.tar.gz ``` sh *** build *** +./autogen.sh +./configure --prefix=$pkgpath +make -j$(nproc) +make install ``` diff --git a/src/commands/run/build.rs b/src/commands/run/build.rs index 6e3ce04..46ad346 100644 --- a/src/commands/run/build.rs +++ b/src/commands/run/build.rs @@ -53,9 +53,9 @@ pub fn build(repo: &String, pkgname: &String) { hook(&pkg_dir); if full_env.get("disable").is_some() { - link(repo, pkgname); - } else { let _ = fs::File::create(pkg_dir.join("disabled")); + } else { + link(repo, pkgname); } }