pkg build fix autodisable package

This commit is contained in:
2026-09-11 08:17:14 +03:00
parent 689526fb92
commit 42b7e6abd0
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,10 @@
libusb 1.0.3 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 *** ``` sh *** build ***
./autogen.sh
./configure --prefix=$pkgpath
make -j$(nproc)
make install
``` ```

View File

@ -53,9 +53,9 @@ pub fn build(repo: &String, pkgname: &String) {
hook(&pkg_dir); hook(&pkg_dir);
if full_env.get("disable").is_some() { if full_env.get("disable").is_some() {
link(repo, pkgname);
} else {
let _ = fs::File::create(pkg_dir.join("disabled")); let _ = fs::File::create(pkg_dir.join("disabled"));
} else {
link(repo, pkgname);
} }
} }