1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +00:00

Ports: Update neofetch to 7.1.0

This commit is contained in:
Linus Groh 2021-01-29 22:27:31 +01:00 committed by Andreas Kling
parent 34902f18ce
commit af605afb27
4 changed files with 61 additions and 79 deletions

View file

@ -44,7 +44,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`nano`](nano/) | GNU nano | 4.5 | https://www.nano-editor.org/ | | [`nano`](nano/) | GNU nano | 4.5 | https://www.nano-editor.org/ |
| [`nasm`](nasm/) | Netwide Assembler (NASM) | 2.14.02 | https://www.nasm.us/ | | [`nasm`](nasm/) | Netwide Assembler (NASM) | 2.14.02 | https://www.nasm.us/ |
| [`ncurses`](ncurses/) | ncurses | 6.2 | https://invisible-island.net/ncurses/announce.html | | [`ncurses`](ncurses/) | ncurses | 6.2 | https://invisible-island.net/ncurses/announce.html |
| [`neofetch`](neofetch/) | neofetch | 7.0.0 | https://github.com/dylanaraps/neofetch | | [`neofetch`](neofetch/) | neofetch | 7.1.0 | https://github.com/dylanaraps/neofetch |
| [`nesalizer`](nesalizer/) | Nesalizer | | https://github.com/SerenityOS/nesalizer | | [`nesalizer`](nesalizer/) | Nesalizer | | https://github.com/SerenityOS/nesalizer |
| [`ninja`](ninja/) | Ninja | 1.8.2 | https://ninja-build.org/ | | [`ninja`](ninja/) | Ninja | 1.8.2 | https://ninja-build.org/ |
| [`nyancat`](nyancat/) | Nyancat | | https://github.com/klange/nyancat | | [`nyancat`](nyancat/) | Nyancat | | https://github.com/klange/nyancat |

View file

@ -1,6 +1,7 @@
#!/usr/bin/env -S bash ../.port_include.sh #!/usr/bin/env -S bash ../.port_include.sh
port=neofetch port=neofetch
version=7.0.0 version=7.1.0
useconfigure=false useconfigure=false
depends="bash jq" depends="bash jq"
files="https://github.com/dylanaraps/neofetch/archive/${version}.tar.gz neofetch-${version}.tar.gz" files="https://github.com/dylanaraps/neofetch/archive/${version}.tar.gz neofetch-${version}.tar.gz"

View file

@ -1,24 +1,23 @@
--- neofetch-7.0.0/neofetch 2020-03-08 10:23:36.000000000 +0000 --- neofetch-7.1.0/neofetch 2021-01-29 22:24:13.954000000 +0100
+++ neofetch-7.0.0/neofetch 2020-07-12 00:42:11.171106931 +0100 +++ neofetch-7.1.0/neofetch 2021-01-29 22:25:14.498712940 +0100
@@ -775,7 +775,7 @@ @@ -794,7 +794,7 @@
# PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, Raspbian, # popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, # Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
# Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor, # Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
-# SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus, -# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
+# SerenityOS, SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus, +# Septor, SereneLinux, SerenityOS, SharkLinux, Siduction, Slackware, SliTaz,
# Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap, # SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel, # openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
# Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, Ubuntu, # Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
@@ -923,6 +923,8 @@ @@ -929,6 +929,7 @@
: Windows AIX) os=AIX ;;
;; IRIX*) os=IRIX ;;
FreeMiNT) os=FreeMiNT ;;
+ SerenityOS) os=SerenityOS ;;
+ SerenityOS): SerenityOS ;; Linux|GNU*)
+ os=Linux
*) @@ -1185,6 +1186,10 @@
printf '%s\n' "Unknown OS detected: '$kernel_name', aborting..." >&2
printf '%s\n' "Open an issue on GitHub to add support for your OS." >&2
@@ -1142,6 +1144,10 @@
FreeMiNT) FreeMiNT)
distro=FreeMiNT distro=FreeMiNT
;; ;;
@ -29,7 +28,7 @@
esac esac
distro=${distro//Enterprise Server} distro=${distro//Enterprise Server}
@@ -1306,7 +1312,7 @@ @@ -1356,7 +1361,7 @@
get_kernel() { get_kernel() {
# Since these OS are integrated systems, it's better to skip this function altogether # Since these OS are integrated systems, it's better to skip this function altogether
@ -38,7 +37,7 @@
# Haiku uses 'uname -v' and not - 'uname -r'. # Haiku uses 'uname -v' and not - 'uname -r'.
[[ $os == Haiku ]] && { [[ $os == Haiku ]] && {
@@ -1327,17 +1333,17 @@ @@ -1377,17 +1382,17 @@
esac esac
# Hide kernel info if it's identical to the distro info. # Hide kernel info if it's identical to the distro info.
@ -62,28 +61,16 @@
if [[ -r /proc/uptime ]]; then if [[ -r /proc/uptime ]]; then
s=$(< /proc/uptime) s=$(< /proc/uptime)
s=${s/.*} s=${s/.*}
@@ -1396,7 +1402,10 @@ @@ -1628,6 +1633,8 @@
uptime=${d:+$d, }${h:+$h, }$m
uptime=${uptime%', '}
- uptime=${uptime:-$seconds secs}
+ # s/$seconds/$s
+ # Note: this was fixed upstream already but not released yet
+ # https://github.com/dylanaraps/neofetch/commit/e960c5168654211a8429e8089ba160e3cc89dc37
+ uptime=${uptime:-$s secs}
# Make the output of uptime smaller.
case $uptime_shorthand in
@@ -1577,6 +1586,8 @@
off) shell="${SHELL##*/} " ;; off) shell="${SHELL##*/} " ;;
esac esac
+ [[ $os == SerenityOS ]] && shell="SerenityOS Shell" + [[ "$os" == SerenityOS ]] && shell="SerenityOS Shell"
+ +
[[ $shell_version != on ]] && return [[ $shell_version != on ]] && return
case ${shell_name:=${SHELL##*/}} in case ${shell_name:=${SHELL##*/}} in
@@ -2030,13 +2041,13 @@ @@ -2096,13 +2103,13 @@
speed_dir="/sys/devices/system/cpu/cpu0/cpufreq" speed_dir="/sys/devices/system/cpu/cpu0/cpufreq"
# Select the right temperature file. # Select the right temperature file.
@ -104,7 +91,7 @@
# Get CPU speed. # Get CPU speed.
if [[ -d "$speed_dir" ]]; then if [[ -d "$speed_dir" ]]; then
@@ -2201,6 +2212,13 @@ @@ -2268,6 +2275,13 @@
cpu="$(awk -F':' '/CPU:/ {printf $2}' /kern/cpuinfo)" cpu="$(awk -F':' '/CPU:/ {printf $2}' /kern/cpuinfo)"
speed="$(awk -F '[:.M]' '/Clocking:/ {printf $2}' /kern/cpuinfo)" speed="$(awk -F '[:.M]' '/Clocking:/ {printf $2}' /kern/cpuinfo)"
;; ;;
@ -118,7 +105,7 @@
esac esac
# Remove un-needed patterns from cpu output. # Remove un-needed patterns from cpu output.
@@ -2585,6 +2603,15 @@ @@ -2646,6 +2660,15 @@
mem_used="$((mem_used / 1024))" mem_used="$((mem_used / 1024))"
;; ;;
@ -134,46 +121,40 @@
esac esac
[[ "$memory_percent" == "on" ]] && ((mem_perc=mem_used * 100 / mem_total)) [[ "$memory_percent" == "on" ]] && ((mem_perc=mem_used * 100 / mem_total))
@@ -3027,6 +3054,13 @@ @@ -2980,6 +3003,13 @@
theme="${theme/ '[Plasma]'}" # Fix weird output when the function is run multiple times.
fi unset gtk2_theme gtk3_theme theme path
fi
+
+ if [[ "$os" == "SerenityOS" ]]; then + if [[ "$os" == "SerenityOS" ]]; then
+ theme=$(ini /etc/WindowServer/WindowServer.ini Theme Name) + theme=$(ini /etc/WindowServer/WindowServer.ini Theme Name)
+ if [ -z "$theme" ]; then + if [ -z "$theme" ]; then
+ theme="Default" + theme="Default"
+ fi + fi
+ fi + fi
} +
if [[ "$DISPLAY" && $os != "Mac OS X" && $os != "macOS" ]]; then
get_theme() { # Get DE if user has disabled the function.
@@ -3035,6 +3069,7 @@ ((de_run != 1)) && get_de
gconf="gtk_theme" @@ -3130,8 +3160,7 @@
xfconf="/Net/ThemeName"
kde="Name"
+ serenity=
get_style
}
@@ -3045,6 +3080,7 @@
gconf="icon_theme"
xfconf="/Net/IconThemeName" xfconf="/Net/IconThemeName"
kde="Theme" kde="Theme"
+ serenity=
get_style - get_style
icons="$theme" - icons="$theme"
@@ -3074,6 +3110,8 @@ + icons=
}
get_font() {
@@ -3158,6 +3187,8 @@
*) term="${TERM_PROGRAM/\.app}" ;; *) term="${TERM_PROGRAM/\.app}" ;;
esac esac
+ [[ $os == SerenityOS ]] && term="SerenityOS Terminal" + [[ "$os" == SerenityOS ]] && term="SerenityOS Terminal"
+ +
# Most likely TosWin2 on FreeMiNT - quick check # Most likely TosWin2 on FreeMiNT - quick check
[[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && term="TosWin2" [[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && term="TosWin2"
[[ "$SSH_CONNECTION" ]] && term="$SSH_TTY" [[ "$SSH_CONNECTION" ]] && term="$SSH_TTY"
@@ -3637,10 +3675,10 @@ @@ -3722,10 +3753,10 @@
} }
get_public_ip() { get_public_ip() {
@ -188,7 +169,7 @@
if [[ -z "$public_ip" ]] && type -p drill >/dev/null; then if [[ -z "$public_ip" ]] && type -p drill >/dev/null; then
public_ip="$(drill myip.opendns.com @resolver1.opendns.com | \ public_ip="$(drill myip.opendns.com @resolver1.opendns.com | \
@@ -3785,13 +3823,13 @@ @@ -3871,13 +3902,13 @@
} }
print_ascii() { print_ascii() {
@ -209,7 +190,7 @@
# Set locale to get correct padding. # Set locale to get correct padding.
LC_ALL="$sys_locale" LC_ALL="$sys_locale"
@@ -4549,8 +4587,8 @@ @@ -4650,8 +4681,8 @@
padding=${xrdb/*internalBorder:} padding=${xrdb/*internalBorder:}
padding=${padding/$'\n'*} padding=${padding/$'\n'*}
@ -220,16 +201,16 @@
;; ;;
esac esac
} }
@@ -4834,7 +4872,7 @@ @@ -4936,7 +4967,7 @@
PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, Raspbian, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor, Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
- SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus, - Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
+ SerenityOS, SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus, + Septor, SereneLinux, SerenityOS, SharkLinux, Siduction, Slackware, SliTaz,
Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap, SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel, openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, Ubuntu, Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
@@ -9097,6 +9135,34 @@ @@ -9513,6 +9544,34 @@
EOF EOF
;; ;;

View file

@ -1,5 +1,5 @@
--- neofetch-7.0.0/neofetch 2020-04-27 15:12:00.884771680 +0100 --- neofetch-7.1.0/neofetch 2021-01-29 21:35:11.839000000 +0100
+++ neofetch-7.0.0/neofetch 2020-04-27 18:57:54.263417418 +0100 +++ neofetch-7.1.0/neofetch 2021-01-29 21:35:21.531205189 +0100
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-#!/usr/bin/env bash -#!/usr/bin/env bash
+#!/bin/bash +#!/bin/bash