diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-18 04:01:56 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-19 12:09:28 +0700 |
commit | 6eca0c94bee2f238dd1333bcc8d837be0eac07fb (patch) | |
tree | bd78ba28f526832fea64743dae71bf792436313d /office/coolreader/coolreader.SlackBuild | |
parent | 2b1a8cd49c3ada5d7262b7d3ab334719ab551ace (diff) | |
download | slackbuilds-6eca0c94bee2f238dd1333bcc8d837be0eac07fb.tar.gz |
office/coolreader: Updated for version 3.2.59.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/coolreader/coolreader.SlackBuild')
-rw-r--r-- | office/coolreader/coolreader.SlackBuild | 50 |
1 files changed, 33 insertions, 17 deletions
diff --git a/office/coolreader/coolreader.SlackBuild b/office/coolreader/coolreader.SlackBuild index 2d3d9c196d..65b8c97871 100644 --- a/office/coolreader/coolreader.SlackBuild +++ b/office/coolreader/coolreader.SlackBuild @@ -23,6 +23,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220218 bkw: update for v3.2.59. To get it to build, had to disable +# unrar support... which didn't exist in v3.2.57, so nobody will miss +# it, I hope. Also, wxWidgets support fails to build, so that's now +# disabled (and removed from the README). + # 20210930 bkw: update for v3.2.57. This is not the latest release, but # 3.2.58 fails to build. Will revisit when the next release happens. If # you can't wait that long, send me a patch (does anyone even use this?) @@ -58,7 +63,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=coolreader -VERSION=${VERSION:-3.2.57} +VERSION=${VERSION:-3.2.59} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -119,26 +124,36 @@ sed -i "s,share/doc/cr3,doc/$PRGNAM-$VERSION," cr3qt/CMakeLists.txt # into Qt Designer and saving it again. Needed because upstream's # using a different (older?) version of qt4. -GUI=${GUI:-QT5} -GUI="$( echo $GUI | tr a-z A-Z )" -case "$GUI" in - # 20210930 bkw: Qt4 disabled for now, unless/until SBo gets a qt4 build. - #QT) UI=Qt4 - #sed -i '/<property name="currentText"/s,>, stdset="0">,' cr3qt/src/settings.ui - #;; - QT5) UI=Qt5 ;; - WX) # Only 2.8.x works, be specific in the slack-desc. - UI="wxWidgets 2.8" - SLKCFLAGS+=" $( wx-config --version=2.8 --cflags )" - SLKLDFLAGS="$( wx-config --version=2.8 --libs )" ;; - *) echo "*** Unsupported GUI '$GUI', use one of: QT5 WX" - exit 1 ;; -esac +if true; then + # 20220218 bkw: only the qt5 UI works in 3.2.59, sorry. + GUI=QT5 + UI=Qt5 +else + # 20220218 bkw: wxWidgets is broken (for either 2.8 or 3.0), + # this section of code can't run, it's left for reference. + GUI=${GUI:-QT5} + GUI="$( echo $GUI | tr a-z A-Z )" + case "$GUI" in + # 20210930 bkw: Qt4 disabled for now, unless/until SBo gets a qt4 build. + #QT) UI=Qt4 + #sed -i '/<property name="currentText"/s,>, stdset="0">,' cr3qt/src/settings.ui + #;; + QT5) UI=Qt5 ;; + WX) # Only 2.8.x works, be specific in the slack-desc. + UI="wxWidgets 2.8" + SLKCFLAGS+=" $( wx-config --version=2.8 --cflags )" + SLKLDFLAGS="$( wx-config --version=2.8 --libs )" ;; + *) echo "*** Unsupported GUI '$GUI', use one of: QT5 WX" + exit 1 ;; + esac +fi # 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. +# Qt4/5 UIs. Incomplete: you can't press Alt+F followed by O for +# File -> Open... but you can use the arrow keys to navigate the +# menus once one of them has been opened. sed -i 's,>\(File\|View\|Navigation\|Help\)<,>\&\1<,' \ cr3qt/src/mainwindow.ui @@ -166,6 +181,7 @@ cd build -D MAX_IMAGE_SCALE_MUL=2 \ -D DOC_DATA_COMPRESSION_LEVEL=3 \ -D DOC_BUFFER_SIZE=0x1400000 \ + -U USE_UNRAR \ -D GUI=$GUI .. make VERBOSE=1 make install/strip DESTDIR=$PKG |