Created
October 10, 2020 19:01
-
-
Save Stebalien/5e6f91229968f92eaf85a0c971d1dc0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index b626f00..5df4ae4 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -31,25 +31,22 @@ md5sums=('SKIP' | |
prepare() { | |
cd "$srcdir/$_pkgname" | |
- local patch97=0 | |
- | |
- local RED='\033[0;31m' | |
- local NC='\033[0m' # No Color | |
+ git submodule update --init --recursive | |
- msg2 "${RED}NOTE:${NC}" | |
+ local patch97=0 | |
if [[ "$VFS0097" == 1 ]]; then | |
patch97=1 | |
- msg2 "${RED}Applying patch for 138a:0097 since VFS0097=1 was found in the environment${NC}" | |
+ warning "Applying patch for 138a:0097 since VFS0097=1 was found in the environment" | |
elif [[ "$VFS0097" == 0 ]]; then | |
patch97=0 | |
- msg2 "${RED}Building for 138a:0090 as requested. If you wish to enable patches for 138a:0097, export VFS0097=1${NC}" | |
+ warning "Building for 138a:0090 as requested. If you wish to enable patches for 138a:0097, export VFS0097=1" | |
elif lsusb | grep -q "138a:0097"; then | |
patch97=1 | |
- msg2 "${RED}VFS0097 fingerprint reader detected - applying patch for 138a:0097${NC}" | |
- msg2 "${RED}If you wish to build for 138a:0090, export VFS0097=0${NC}" | |
+ warning "VFS0097 fingerprint reader detected - applying patch for 138a:0097" | |
+ warning "If you wish to build for 138a:0090, export VFS0097=0" | |
else | |
- msg2 "${RED}Building for 138a:0090. If you wish to enable patches for 138a:0097, export VFS0097=1${NC}" | |
+ warning "Building for 138a:0090. If you wish to enable patches for 138a:0097, export VFS0097=1" | |
fi | |
if [[ "$patch97" == 1 ]]; then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment