Skip to content

Commit

Permalink
user/hyfetch: new package (1.4.11)
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiofb-dev authored and q66 committed Jul 11, 2024
1 parent 743086d commit d37e568
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 0 deletions.
76 changes: 76 additions & 0 deletions user/hyfetch/patches/add-chimera.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
From 30d1e67b535ca284b60f580f74abd4497400bb29 Mon Sep 17 00:00:00 2001
From: Aster Boese <brandonboese@protonmail.com>
Date: Mon, 13 May 2024 14:52:21 -0400
Subject: [PATCH] add Chimera Linux

---
docs/neofetch.1 | 2 +-
neofetch | 28 ++++++++++++++++++++++++++--
2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/docs/neofetch.1 b/docs/neofetch.1
index a0e71efe3..71004e97e 100644
--- a/docs/neofetch.1
+++ b/docs/neofetch.1
@@ -321,7 +321,7 @@ ArcoLinux, ArseLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Astra
Linux, Athena, azos, Bedrock, BigLinux, Bitrig, BlackArch,
blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD,
BunsenLabs, CachyOS, Calculate, CalinixOS, Carbs, CBL\-Mariner,
-CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
+CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, Chimera, ChonkySealOS,
Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Cobalt, Condres,
Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber,
CutefishOS, CuteOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin,
diff --git a/neofetch b/neofetch
index d90f0e03f..d4eb40737 100755
--- a/neofetch
+++ b/neofetch
@@ -870,7 +870,7 @@ image_source="auto"
# archcraft_ascii, archcraft_minimal, ARCHlabs, ArchMerge, ArchStrike, ArcoLinux, ArseLinux, Artix,
# Arya, Asahi, AsteroidOS, astOS, Astra Linux, Athena, azos, Bedrock, BigLinux, Bitrig, BlackArch,
# blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs, CachyOS, Calculate,
-# CalinixOS, Carbs, CBL-Mariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
+# CalinixOS, Carbs, CBL-Mariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, Chimera, ChonkySealOS,
# Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Cobalt, Condres, Container Linux by CoreOS,
# CRUX, Crystal Linux, Cucumber, CutefishOS, CuteOS, CyberOS, dahlia, DarkOs, Darwin, Debian,
# Deepin, DesaOS, Devuan, DietPi, digital UNIX, DracOS, DragonFly, Drauger, Droidian, Elementary,
@@ -6549,7 +6549,7 @@ ASCII:
Linux, Athena, azos, Bedrock, BigLinux, Bitrig, BlackArch,
blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD,
BunsenLabs, CachyOS, Calculate, CalinixOS, Carbs, CBL-Mariner,
- CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
+ CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, Chimera, ChonkySealOS,
Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Cobalt, Condres,
Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber,
CutefishOS, CuteOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin,
@@ -8744,6 +8744,30 @@ ${c1} .-/-.
EOF
;;

+ "Chimera"*)
+ set_colors 1 5 4 1
+ read -rd '' ascii_data <<'EOF'
+${c3}ddddddddddddddc ${c1},cc:
+${c3}ddddddddddddddc ${c1},cc:
+${c3}ddddddddddddddd ${c1},cc:
+${c3}ddddddddddddl:' ${c1},cc:
+${c3}dddddddddl' ${c1}..;cc:
+${c3}dddddddo. ${c1},:cccccc:
+${c3}ddddddl ${c1},ccc:'''''
+${c3}dddddo. ${c1};ccc. ............
+ .ccc. cccccccccccc
+${c2}...... ${c1}.ccc. .ccc'''''''''
+${c2}OOOOOk. ${c1};ccc. .ccc; ......
+${c2}OOOOOOd ${c1}'ccc:,....,:ccc' ${c4}coooooo
+${c2}OOOOOOOx. ${c1}':cccccccc:' ${c4}.looooooo
+${c2}OOOOOOOOOd, ${c1}`'''` ${c4}.coooooooo
+${c2}OOOOOOOOOOOOdc,. ${c4}..,coooooooooooo
+${c2}OOOOOOOOOOOOOOOO' ${c4}.oooooooooooooooo
+${c2}OOOOOOOOOOOOOOOO' ${c4}.oooooooooooooooo
+${c2}OOOOOOOOOOOOOOOO' ${c4}.oooooooooooooooo
+EOF
+ ;;
+
"ChonkySealOS"*)
set_colors 7
read -rd '' ascii_data <<'EOF'
37 changes: 37 additions & 0 deletions user/hyfetch/patches/remove-typing_extensions-dependency.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 359226c26b065909f348084446ebad4fe0cc0680 Mon Sep 17 00:00:00 2001
From: Jelle van der Waa <jelle@archlinux.org>
Date: Sat, 25 May 2024 19:26:26 +0200
Subject: [PATCH] Make typing_extensions only required for 3.7

Literal was introduced in Python 3.8.
---
hyfetch/types.py | 5 ++++-
setup.py | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/hyfetch/types.py b/hyfetch/types.py
index 283bd8fd7..2e6287dba 100644
--- a/hyfetch/types.py
+++ b/hyfetch/types.py
@@ -1,4 +1,7 @@
-from typing_extensions import Literal
+try:
+ from typing import Literal
+except ImportError:
+ from typing_extensions import Literal

AnsiMode = Literal['default', 'ansi', '8bit', 'rgb']
LightDark = Literal['light', 'dark']
diff --git a/setup.py b/setup.py
index dd163e141..ed8ba71b3 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@
include_package_data=True,
install_requires=[
# Universal dependencies
- 'setuptools', 'typing_extensions',
+ 'setuptools', 'typing_extensions; python_version < "3.8"',

# Windows dependencies
'psutil ; platform_system=="Windows"',
29 changes: 29 additions & 0 deletions user/hyfetch/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pkgname = "hyfetch"
pkgver = "1.4.11"
pkgrel = 0
build_style = "python_pep517"
hostmakedepends = [
"python-build",
"python-installer",
"python-setuptools",
]
depends = [
"bash",
"python-setuptools",
]
pkgdesc = "Neofetch with pride flags"
maintainer = "cassiofb-dev <contact@cassiofernando.com>"
license = "MIT"
url = "https://github.com/hykilpikonna/hyfetch"
source = f"{url}/archive/refs/tags/{pkgver}.tar.gz"
sha256 = "79cd6706a681fa7c05754b35d9338abf96bebce222c27376a4155e94d6a5350d"
# no test
options = ["!check"]


def post_install(self):
self.install_license("LICENSE.md")
self.install_man("docs/hyfetch.1")

for shell in ["bash", "zsh"]:
self.install_completion(f"hyfetch/scripts/autocomplete.{shell}", shell)

0 comments on commit d37e568

Please sign in to comment.