Browse Source

Ports: Add pfetch utility

This is a nice and small utility that prints system info based on POSIX
interfaces only.
Liav A 3 năm trước cách đây
mục cha
commit
4abc2f669a
3 tập tin đã thay đổi với 17 bổ sung0 xóa
  1. 1 0
      Ports/AvailablePorts.md
  2. 6 0
      Ports/pfetch/package.sh
  3. 10 0
      Ports/pfetch/patches/use-bash.patch

+ 1 - 0
Ports/AvailablePorts.md

@@ -138,6 +138,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
 | [`patch`](patch/)                      | patch (GNU)                                                     | 2.7.6                    | https://savannah.gnu.org/projects/patch/                                       |
 | [`pcre`](pcre/)                        | Perl-compatible Regular Expressions (PCRE)                      | 8.45                     | https://www.pcre.org/                                                          |
 | [`pcre2`](pcre2/)                      | Perl-compatible Regular Expressions (PCRE2)                     | 10.39                    | https://www.pcre.org/                                                          |
+| [`pfetch`](pfetch/)                    | pfetch                                                          | a906ff8                  | https://github.com/dylanaraps/pfetch/                                          |
 | [`php`](php/)                          | PHP                                                             | 8.0.10                   | https://www.php.net/                                                           |
 | [`pkgconf`](pkgconf/)                  | pkgconf                                                         | 1.8.0                    | https://github.com/pkgconf/pkgconf                                             |
 | [`SDLPoP`](SDLPoP/)                    | Prince of Persia game                                           |                          | https://github.com/NagyD/SDLPoP                                                |

+ 6 - 0
Ports/pfetch/package.sh

@@ -0,0 +1,6 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=pfetch
+version=a906ff89680c78cec9785f3ff49ca8b272a0f96b
+depends=("bash")
+files="https://github.com/dylanaraps/pfetch/archive/${version}.zip pfetch.zip 33ed7a0cf1826ded7cf8368972274cd261d236bfa1ad9fb378d3cb0a45376f4a"
+auth_type=sha256

+ 10 - 0
Ports/pfetch/patches/use-bash.patch

@@ -0,0 +1,10 @@
+diff --git a/pfetch b/pfetch
+index d47b878..d8f98ba 100755
+--- a/pfetch
++++ b/pfetch
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+ #
+ # pfetch - Simple POSIX sh fetch script.
+