mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
office/coolreader: Updated for version 3.2.50, keyboard shortcuts.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1a75257e2b
commit
877f199033
2 changed files with 33 additions and 4 deletions
|
@ -23,6 +23,12 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20201102 bkw:
|
||||
# - update for v3.2.50.
|
||||
# - embiggen the default window size.
|
||||
# - make standard (since the 1980s!) keyboard accelerators work
|
||||
# (alt-f for file menu, alt-v for view, etc), in the qt4/5 UIs.
|
||||
|
||||
# 20201019 bkw:
|
||||
# - update for v3.2.49, new homepage.
|
||||
# - allow for building qt4, qt5, wx UIs.
|
||||
|
@ -37,7 +43,7 @@
|
|||
# - save/load settings (.ini file) to ~/.cr3, not /usr/share/cr3.
|
||||
|
||||
PRGNAM=coolreader
|
||||
VERSION=${VERSION:-3.2.49}
|
||||
VERSION=${VERSION:-3.2.50}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -79,6 +85,13 @@ cd $PRGNAM-cr$VERSION
|
|||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||
|
||||
# FFS, it's 2020, we don't need GUI apps hardcoded to start at
|
||||
# 640x400 window size. Honestly we don't need them hardcoded at
|
||||
# all, but since that's what coolreader does, pick a size that's
|
||||
# bigger than a 3x5" index card on a modern screen...
|
||||
sed -i 's,\(<height>\)400,\11024,' cr3qt/src/mainwindow.ui
|
||||
sed -i 's,\(<width>\)600,\11280,' cr3qt/src/mainwindow.ui
|
||||
|
||||
# Use bundled libunibreak, ours is too old (3.0).
|
||||
# Use bundled fribidi, Pat's is too old (0.19.7).
|
||||
sed -i -e '/find_package(libunibreak)/d' \
|
||||
|
@ -104,6 +117,22 @@ case "$GUI" in
|
|||
exit 1 ;;
|
||||
esac
|
||||
|
||||
# 20201103 bkw: Alt+F for the File menu, Alt+V for View, etc. This
|
||||
# has been a UI standard since before Windows 1.0 (MS-DOS apps had it),
|
||||
# and I'm not sure why upstream didn't include it. Only affects the
|
||||
# Qt4/5 UIs.
|
||||
sed -i 's,>\(File\|View\|Navigation\|Help\)<,>\&\1<,' \
|
||||
cr3qt/src/mainwindow.ui
|
||||
|
||||
# This is undocumented and exists purely for my own use. It gets rid
|
||||
# of the "Escape = minimize" keystroke, because I keep expecting Escape
|
||||
# to exit (like 3 or 4 other document readers I use regularly).
|
||||
# Only affects the Qt4/5 UIs.
|
||||
if [ "${NO_ESCAPE:-no}" = "yes" ]; then
|
||||
echo "=== Activating super-secret Urchlay mode"
|
||||
echo -e 'g/>Esc<\n-1,+1d\nw\nq' | ed cr3qt/src/mainwindow.ui
|
||||
fi
|
||||
|
||||
echo "=== Building $UI GUI"
|
||||
|
||||
mkdir -p build
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="coolreader"
|
||||
VERSION="3.2.49"
|
||||
VERSION="3.2.50"
|
||||
HOMEPAGE="https://github.com/buggins/coolreader"
|
||||
DOWNLOAD="https://github.com/buggins/coolreader/archive/cr3.2.49/coolreader-cr3.2.49.tar.gz"
|
||||
MD5SUM="0a1f72a2799ba454a47e846ad59825c3"
|
||||
DOWNLOAD="https://github.com/buggins/coolreader/archive/cr3.2.50/coolreader-cr3.2.50.tar.gz"
|
||||
MD5SUM="cb04397695a00defe7dad86c1d654371"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue