Created
October 10, 2020 18:58
-
-
Save Stebalien/2b8aedee803e734c24c5a3396eff5022 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
[1m[0m[1m─────────────────────────────────────────────────────────────────────────────────────────────────────────[0m | |
[1mmodified: PKGBUILD | |
[1m─────────────────────────────────────────────────────────────────────────────────────────────────────────[0m | |
[36m[1m[38;5;13m@ PKGBUILD:34 @[1m[1m[38;5;146m md5sums=('SKIP'[0m | |
[m | |
prepare() {[m | |
cd "$srcdir/$_pkgname"[m | |
[1m[38;5;1m[31m local patch97=0[m | |
[0m[7m[31m [m | |
[1m[38;5;1m[31m local RED='\033[0;31m'[m | |
[0m[1m[38;5;1m[31m local NC='\033[0m' # No Color[m | |
[0m[1m[38;5;2m[32m[m[32m git submodule update --init --recursive[m | |
[0m[m | |
[1m[38;5;1m[31m msg2 "${RED}NOTE:${NC}"[m | |
[0m[1m[38;5;2m[32m[m[32m local patch97=0[m | |
[0m[m | |
if [[ "$VFS0097" == 1 ]]; then[m | |
patch97=1[m | |
[1m[38;5;1m[1;31m [m[1;31;48;5;52mmsg2 "${RED}Applying patch for 138a:0097 since VFS0097=1 was found in the environment${NC}[m[1;31m"[m | |
[0m[1m[38;5;2m[1;32m [m[1;32;48;5;22mwarning "Applying patch for 138a:0097 since VFS0097=1 was found in the environment[m[1;32m"[m | |
[0m elif [[ "$VFS0097" == 0 ]]; then[m | |
patch97=0[m | |
[1m[38;5;1m[1;31m [m[1;31;48;5;52mmsg2 "${RED}Building for 138a:0090 as requested. If you wish to enable patches for 138a:0097, export VFS0097=1${NC}[m[1;31m"[m | |
[0m[1m[38;5;2m[1;32m [m[1;32;48;5;22mwarning "Building for 138a:0090 as requested. If you wish to enable patches for 138a:0097, export VFS0097=1[m[1;32m"[m | |
[0m elif lsusb | grep -q "138a:0097"; then[m | |
patch97=1[m | |
[1m[38;5;1m[1;31m [m[1;31;48;5;52mmsg2 "${RED}VFS0097 fingerprint reader detected - applying patch for 138a:0097${NC}[m[1;31m"[m | |
[0m[1m[38;5;1m[1;31m [m[1;31;48;5;52mmsg2 "${RED}If you wish to build for 138a:0090, export VFS0097=0${NC}[m[1;31m"[m | |
[0m[1m[38;5;2m[1;32m [m[1;32;48;5;22mwarning "VFS0097 fingerprint reader detected - applying patch for 138a:0097[m[1;32m"[m | |
[0m[1m[38;5;2m[1;32m [m[1;32;48;5;22mwarning "If you wish to build for 138a:0090, export VFS0097=0[m[1;32m"[m | |
[0m else[m | |
[1m[38;5;1m[1;31m [m[1;31;48;5;52mmsg2 "${RED}Building for 138a:0090. If you wish to enable patches for 138a:0097, export VFS0097=1${NC}[m[1;31m"[m | |
[0m[1m[38;5;2m[1;32m [m[1;32;48;5;22mwarning "Building for 138a:0090. If you wish to enable patches for 138a:0097, export VFS0097=1[m[1;32m"[m | |
[0m fi[m | |
[m | |
if [[ "$patch97" == 1 ]]; then[m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment