pkg build fix autodisable package
This commit is contained in:
@ -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
|
||||
```
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user