wok rev 16867

Add screenfetch
author Paul Issott <paul@slitaz.org>
date Sun Jul 13 14:06:51 2014 +0100 (2014-07-13)
parents 02b0b1de6624
children 2ff574d4aae8
files screenfetch/receipt screenfetch/stuff/slitaz.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/screenfetch/receipt	Sun Jul 13 14:06:51 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="screenfetch"
     1.7 +VERSION="3.5.0"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Bash screenshot information tool."
    1.10 +MAINTAINER="paul@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="https://github.com/KittyKatt/screenFetch"
    1.13 +WGET_URL="git|git://github.com/KittyKatt/screenFetch"
    1.14 +
    1.15 +DEPENDS="bash procps xorg-xdpyinfo"
    1.16 +BUILD_DEPENDS="git bzip2"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	# patch for SliTaz (use basic artwork - job for artwork team?)
    1.23 +	patch -i ../../stuff/slitaz.patch
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr/bin
    1.30 +	cp -a $src/screenfetch-dev $fs/usr/bin/screenfetch
    1.31 +}
    1.32 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/screenfetch/stuff/slitaz.patch	Sun Jul 13 14:06:51 2014 +0100
     2.3 @@ -0,0 +1,98 @@
     2.4 +--- screenfetch-dev.orig	2014-07-09 18:56:48.000000000 +0100
     2.5 ++++ screenfetch-dev	2014-07-13 13:17:37.000000000 +0100
     2.6 +@@ -207,8 +207,8 @@
     2.7 + 	printf "	CrunchBang, Raspbian, elementary OS, Fedora, Frugalware, Fuduntu, Gentoo,\n"
     2.8 + 	printf "	Funtoo, Jiyuu Linux, LinuxDeepin, Kali Linux, Mageia, Mandriva, Manjaro,\n"
     2.9 + 	printf "	Linux Mint, LMDE, openSUSE, Parabola GNU/Linux-libre, Peppermint,\n"
    2.10 +-	printf "	Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SolusOS,\n"
    2.11 +-	printf "	TinyCore, Trisquel, Ubuntu and Viperr.\n\n"
    2.12 ++	printf "	Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SliTaz,\n"
    2.13 ++	printf "	SolusOS, TinyCore, Trisquel, Ubuntu and Viperr.\n\n"
    2.14 + 	printf "${underline}Other Supported Systems${c0}:\n"
    2.15 + 	printf "	Mac OS X, FreeBSD, DragonFlyBSD, NetBSD, OpenBSD, Android and Cygwin.\n\n"
    2.16 + 	printf "${underline}Supported Desktop Managers${c0}:\n"
    2.17 +@@ -440,6 +440,8 @@
    2.18 + 				distro="Sabayon"
    2.19 + 			elif [[ "${distro_detect}" == "SolusOS" ]]; then
    2.20 + 				distro="SolusOS"
    2.21 ++			elif [[ "${distro_detect}" == "SliTaz" ]]; then
    2.22 ++				distro="SliTaz"
    2.23 + 			elif [[ "${distro_detect}" == "Trisquel" ]]; then
    2.24 + 				distro="Trisquel"
    2.25 + 			elif [[ "${distro_detect}" == "Ubuntu" ]]; then
    2.26 +@@ -535,6 +537,7 @@
    2.27 + 					elif [ -f /etc/redhat-release ] && grep -q "Red Hat" /etc/redhat-release; then distro="Red Hat Enterprise Linux"
    2.28 + 					elif [ -f /etc/redhat-release ] && grep -q "CentOS" /etc/redhat-release; then distro="CentOS"
    2.29 + 					elif [ -f /etc/slackware-version ]; then distro="Slackware"
    2.30 ++					elif [ -f /etc/slitaz-release ]; then distro="SliTaz"
    2.31 + 					elif [ -f /usr/share/doc/tc/release.txt ]; then distro="TinyCore"
    2.32 + 					elif [ -f /etc/sabayon-edition ]; then distro="Sabayon"; fi
    2.33 + 				else
    2.34 +@@ -645,6 +648,7 @@
    2.35 + 		gentoo) distro="Gentoo" ;;
    2.36 + 		funtoo) distro="Funtoo" ;;
    2.37 + 		slackware) distro="Slackware" ;;
    2.38 ++		slitaz) distro="SliTaz" ;;
    2.39 + 		frugalware) distro="Frugalware" ;;
    2.40 + 		peppermint) distro="Peppermint" ;;
    2.41 + 		solusos) distro="SolusOS" ;;
    2.42 +@@ -729,6 +733,7 @@
    2.43 + 	case $distro in
    2.44 + 		'Arch Linux'|'Parabola GNU/Linux-libre'|'Chakra'|'Manjaro'|'Antergos'|'KaOS') pkgs=$(pacman -Qq | wc -l) ;;
    2.45 + 		'Frugalware') pkgs=$(pacman-g2 -Q | wc -l) ;;
    2.46 ++		'SliTaz') pkgs=$(tazpkg list | wc -l) ;;
    2.47 + 		'Fuduntu'|'Ubuntu'|'Mint'|'SolusOS'|'Debian'|'Raspbian'|'LMDE'|'CrunchBang'|'Peppermint'|'LinuxDeepin'|'Kali Linux'|'Trisquel'|'elementary OS') pkgs=$(dpkg --get-selections | wc -l) ;;
    2.48 + 		'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;;
    2.49 + 		'Gentoo'|'Sabayon'|'Funtoo') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
    2.50 +@@ -2967,6 +2972,33 @@
    2.51 + "${c2}          ...............             %s")
    2.52 +                 ;;
    2.53 + 
    2.54 ++		"#SliTaz")
    2.55 ++			if [[ "$no_color" != "1" ]]; then
    2.56 ++				c1=$(getColor 'light grey') # Light Grey
    2.57 ++			fi
    2.58 ++			if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
    2.59 ++			startline="0"
    2.60 ++			fulloutput=(                                 
    2.61 ++"${c1}              #          #  	    %s"       
    2.62 ++"${c1}             #           ##    #   %s"  
    2.63 ++"${c1}      ##   ##             ###  ##  %s" 
    2.64 ++"${c1}     ##  ###               ###  ## %s"
    2.65 ++"${c1}    ##  ###                 ##  ## %s"
    2.66 ++"${c1}   ### ####     #####      #### ###%s"
    2.67 ++"${c1}  ####  #####  #######  #####  ####%s"
    2.68 ++"${c1}   ############################    %s"
    2.69 ++"${c1}       ######################      %s"   
    2.70 ++"${c1} ################################# %s"
    2.71 ++"${c1} ##    ################ ####    ## %s"
    2.72 ++"${c1} #  ###    ############    ###  ## %s"
    2.73 ++"${c1} #  ##     ###########     ###  #  %s"
    2.74 ++"${c1} #   #     ###########     #       %s"    
    2.75 ++"${c1}            ########               %s"  
    2.76 ++"			           %s"
    2.77 ++"                                  %s"
    2.78 ++"                                  %s")  
    2.79 ++		;;
    2.80 ++
    2.81 + 
    2.82 +                 "KaOS")
    2.83 + 	if [[ "$no_color" != "1" ]]; then
    2.84 +@@ -3086,7 +3118,7 @@
    2.85 + 			if [[ "$no_color" != "1" ]]; then
    2.86 + 				c1=$(getColor 'white') # White
    2.87 + 				c2=$(getColor 'dark grey') # Light Gray
    2.88 +-				c3=$(getColor 'yellow') # Light Yellow
    2.89 ++				c3=$(getColor 'light red') # Light Red
    2.90 + 			fi
    2.91 + 			if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
    2.92 + 			startline="0"
    2.93 +@@ -3188,7 +3220,7 @@
    2.94 + 		"Arch Linux - Old"|"Fedora"|"Mandriva"|"Mandrake"|"Chakra"|"Sabayon"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS") labelcolor=$(getColor 'light blue');;
    2.95 + 		"Arch Linux"|"Frugalware"|"Mageia") labelcolor=$(getColor 'light cyan');;
    2.96 + 		"Mint"|"LMDE"|"openSUSE"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android") labelcolor=$(getColor 'light green');;
    2.97 +-		"Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
    2.98 ++		"Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"SliTaz"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
    2.99 + 		"CrunchBang"|"SolusOS"|"Viperr"|"elementary"*) labelcolor=$(getColor 'dark grey');;
   2.100 + 		"Gentoo"|"Parabola GNU/Linux-libre"|"Funtoo"|"Funtoo-text") labelcolor=$(getColor 'light purple');;
   2.101 + 		"CentOS"|"Ubuntu"|*) labelcolor=$(getColor 'yellow');;