void-packages/srcpkgs/screenFetch/patches/void-fixes.patch

60 lines
3.1 KiB
Diff

--- ./screenfetch-dev.orig 2017-03-10 13:55:45.000000000 +0000
+++ ./screenfetch-dev 2017-05-21 15:54:48.717974375 +0000
@@ -587,6 +587,11 @@
distro="Viperr"
distro_codename=null
;;
+ "Void"|"VoidLinux")
+ distro="Void Linux"
+ distro_codename=""
+ distro_release=""
+ ;;
*)
if [ "x$(printf "${distro_detect}" | od -t x1 | sed -e 's/^\w*\ *//' | tr '\n' ' ' | grep 'eb b6 89 ec 9d 80 eb b3 84 ')" != "x" ]; then
distro="Red Star OS"
@@ -664,7 +669,7 @@
fi
# Hotfixes
- [[ "${distro}" == "void" ]] && distro="Void"
+ [[ "${distro}" == "void" ]] && distro="Void Linux"
[[ "${distro}" == "evolveos" ]] && distro="Evolve OS"
[[ "${distro}" == "antergos" ]] && distro="Antergos"
[[ "${distro}" == "logos" ]] && distro="Logos"
@@ -978,7 +983,7 @@
fi
;;
viperr) distro="Viperr" ;;
- void) distro="Void" ;;
+ void*linux) distro="Void Linux" ;;
esac
verboseOut "Finding distro...found as '${distro} ${distro_release}'"
}
@@ -1073,7 +1078,7 @@
'Gentoo'|'Sabayon'|'Funtoo'|'Kogaion') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
'NixOS') pkgs=$(ls -d -1 /nix/store/*/ | wc -l) ;;
'Fedora'|'Fux'|'Korora'|'BLAG'|'Chapeau'|'openSUSE'|'SUSE Linux Enterprise'|'Red Hat Enterprise Linux'|'ROSA'|'Oracle Linux'|'CentOS'|'Mandriva'|'Mandrake'|'Mageia'|'Mer'|'SailfishOS'|'PCLinuxOS'|'Viperr'|'Qubes OS'|'Red Star OS') pkgs=$(rpm -qa | wc -l) ;;
- 'Void') pkgs=$(xbps-query -l | wc -l) ;;
+ 'Void Linux') pkgs=$(xbps-query -l | wc -l) ;;
'Evolve OS'|'Solus') pkgs=$(pisi list-installed | wc -l) ;;
'CRUX') pkgs=$(pkginfo -i | wc -l) ;;
'Lunar Linux') pkgs=$(lvu installed | wc -l) ;;
@@ -4461,7 +4466,7 @@
"${c1} \`.:+ooyyddddddddddddyyso+:.\` %s")
;;
- "Void")
+ "Void Linux")
if [[ "$no_color" != "1" ]]; then
c1=$(getColor 'green') # Dark Green
c2=$(getColor 'light green') # Light Green
@@ -5081,7 +5086,7 @@
case ${myascii} in
"Alpine Linux"|"Arch Linux - Old"|"Fedora"|"Korora"|"Chapeau"|"Mandriva"|"Mandrake"|"Chakra"|"ChromeOS"|"Sabayon"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS"|"Logos"|"gNewSense"|"Netrunner"|"NixOS"|"SailfishOS"|"Qubes OS"|"Kogaion"|"PCLinuxOS"|"Obarun"|"Solus"|"SwagArch"|"Parrot Security") labelcolor=$(getColor 'light blue');;
"Arch Linux"|"Frugalware"|"Mageia"|"Deepin"|"CRUX") labelcolor=$(getColor 'light cyan');;
- "Mint"|"LMDE"|"KDE neon"|"openSUSE"|"SUSE Linux Enterprise"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android"|"Void") labelcolor=$(getColor 'light green');;
+ "Mint"|"LMDE"|"KDE neon"|"openSUSE"|"SUSE Linux Enterprise"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android"|"Void Linux") labelcolor=$(getColor 'light green');;
"Ubuntu"|"FreeBSD"|"FreeBSD - Old"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Oracle Linux"|"Peppermint"|"Cygwin"|"Msys"|"Fuduntu"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux"|"Red Star OS"|"SparkyLinux") labelcolor=$(getColor 'light red');;
"ROSA") labelcolor=$(getColor 'white');;
"CrunchBang"|"Viperr"|"elementary"*) labelcolor=$(getColor 'dark grey');;