[packages/byobu] add pld logo
glen
glen at pld-linux.org
Tue Nov 15 05:12:01 CET 2016
commit 41e69901e6e882fece30c682db095b50454d100f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Nov 15 06:11:30 2016 +0200
add pld logo
byobu.spec | 4 +++-
pld-logo.patch | 18 ++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/byobu.spec b/byobu.spec
index 1c1eb62..4e83d91 100644
--- a/byobu.spec
+++ b/byobu.spec
@@ -3,12 +3,13 @@ Summary(hu.UTF-8): Hasznos profilok és profilváltó gyűjteménye a GNU screen
Summary(pl.UTF-8): Zestaw przydatnych profili oraz przełącznik profili dla GNU screena
Name: byobu
Version: 5.112
-Release: 1
+Release: 2
License: GPL v3
Group: Applications/System
Source0: https://code.launchpad.net/byobu/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
# Source0-md5: 69d0681d83a2811e59642d5ebaa94670
Patch0: desktop.patch
+Patch1: pld-logo.patch
URL: https://launchpad.net/byobu
BuildRequires: gettext-tools
BuildRequires: rpm-pythonprov
@@ -46,6 +47,7 @@ narzędzia konfiguracyjne dla zarządcy okien, jakim jest GNU screen
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%{__sed} -i -e '
s#/share/doc/byobu#/share/doc/%{name}-%{version}#
diff --git a/pld-logo.patch b/pld-logo.patch
new file mode 100644
index 0000000..4279e22
--- /dev/null
+++ b/pld-logo.patch
@@ -0,0 +1,18 @@
+--- byobu-5.112/usr/lib/byobu/logo~ 2016-11-15 06:10:16.000000000 +0200
++++ byobu-5.112/usr/lib/byobu/logo 2016-11-15 06:10:20.583778776 +0200
+@@ -123,6 +124,15 @@
+ logo=" X "
+ $MARKUP && printf "$(color W r)%s$(color -)" "$logo" || printf "$logo"
+ ;;
++ *pld*)
++ if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
++ # PLD Logo is Stork, but no stork in unicode, so just use Bird (U+1F426)
++ logo=" 🐦 "
++ else
++ logo="pld"
++ fi
++ $MARKUP && printf "$(color u B k)%s$(color -)" "$logo" || printf "$logo"
++ ;;
+ *)
+ if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
+ logo="〣"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/byobu.git/commitdiff/41e69901e6e882fece30c682db095b50454d100f
More information about the pld-cvs-commit
mailing list