screenfetch package (#339)

This commit is contained in:
Pierre Rudloff 2016-06-29 11:53:20 +02:00 committed by Fredrik Fornwall
parent 3a67e5de18
commit b306c93117
2 changed files with 42 additions and 0 deletions

View 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/
}

View 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