screenfetch package (#339)
This commit is contained in:
parent
3a67e5de18
commit
b306c93117
13
packages/screenfetch/build.sh
Normal file
13
packages/screenfetch/build.sh
Normal file
@ -0,0 +1,13 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/KittyKatt/screenFetch
|
||||
TERMUX_PKG_DESCRIPTION="Bash Screenshot Information Tool"
|
||||
TERMUX_PKG_VERSION=3.7.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/KittyKatt/screenFetch/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
TERMUX_PKG_FOLDERNAME=screenFetch-${TERMUX_PKG_VERSION}
|
||||
TERMUX_PKG_DEPENDS=""
|
||||
TERMUX_PKG_MAINTAINER="Pierre Rudloff <contact@rudloff.pro>"
|
||||
|
||||
termux_step_make_install () {
|
||||
install screenfetch-dev ${TERMUX_PREFIX}/bin/screenfetch
|
||||
install screenfetch.1 ${TERMUX_PREFIX}/share/man/man1/
|
||||
}
|
29
packages/screenfetch/screenfetch-dev.patch
Normal file
29
packages/screenfetch/screenfetch-dev.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff --git a/screenfetch-dev b/screenfetch-dev
|
||||
index 56837fe..8d4a8c1 100755
|
||||
--- a/screenfetch-dev
|
||||
+++ b/screenfetch-dev
|
||||
@@ -4134,15 +4134,15 @@ if [[ "$overrideDisplay" ]]; then
|
||||
fi
|
||||
|
||||
# Check for android
|
||||
-#if type -p getprop >/dev/null 2>&1; then
|
||||
-# distro="Android"
|
||||
-# detectmem
|
||||
-# detectuptime
|
||||
-# detectkernel
|
||||
-# detectdroid
|
||||
-# infoDisplay
|
||||
-# exit 0
|
||||
-#fi
|
||||
+if type -p getprop >/dev/null 2>&1; then
|
||||
+ distro="Android"
|
||||
+ detectmem
|
||||
+ detectuptime
|
||||
+ detectkernel
|
||||
+ detectdroid
|
||||
+ infoDisplay
|
||||
+ exit 0
|
||||
+fi
|
||||
|
||||
for i in "${display[@]}"; do
|
||||
if [[ ! "$i" == "" ]]; then
|
Loading…
Reference in New Issue
Block a user