LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Calibre 3.0.0 is out (https://www.linuxquestions.org/questions/slackware-14/calibre-3-0-0-is-out-4175608141/)

Lenard Spencer 06-18-2017 05:09 PM

Calibre 3.0.0 is out
 
I just noticed that Calibre 3.0.0 has been released, and in trying to build it, I have found that it has a couple of new dependencies. First, regex is now an external prerequisite as is no longer bundled in the source package, and Calibre 3 will not run without it. Second is msgpack-python, which may be optional (maybe not) because while it squawks about not finding module msgpack during the install phase of the SBo script, it still starts up ok and I am able to read Ebooks, though I have not had a chance to go through and test all the options that may use that module. In other words, I saw no squawks running calibre from a terminal window. Usual disclaimer here, YMMV.

willysr 06-18-2017 06:47 PM

msgpack-python is needed when you want to enable the new Content Server feature

dugan 06-18-2017 11:06 PM

I have a SlackBuild that packages the binary distribution, which has all dependencies included:

https://raw.githubusercontent.com/du...bre.SlackBuild

Mark Pettit 06-19-2017 05:29 AM

Quote:

Originally Posted by dugan (Post 5724187)
I have a SlackBuild that packages the binary distribution, which has all dependencies included:

https://raw.githubusercontent.com/du...bre.SlackBuild

Thanks. Actually sad that it's easier to install that way, but sometimes, just sometimes, practicality beats purity. This is one of those times.

Alien Bob 06-19-2017 09:10 AM

Quote:

Originally Posted by Mark Pettit (Post 5724270)
Thanks. Actually sad that it's easier to install that way, but sometimes, just sometimes, practicality beats purity. This is one of those times.

Yeah, but where is the fun in that?
I'll look into updating my own calibre.SlackBuild for this new 3.x release. Sounds like fun. Glad Kovid is still using Python2 though... less effort for me.

Mark Pettit 06-20-2017 08:54 AM

Quote:

Originally Posted by Alien Bob (Post 5724332)
Yeah, but where is the fun in that?

Ho Ho .. Ok - that's true. I have installed this release, albeit from the site recommended way. It works. The application looks ever so slightly slicker. The new content server by way of web is very nice. Allows one to read a book inside the browser, even in offline mode. Makes sharing of books REALLY easy.

Alien Bob 06-20-2017 09:38 AM

Quote:

Originally Posted by Mark Pettit (Post 5724789)
Ho Ho .. Ok - that's true. I have installed this release, albeit from the site recommended way. It works. The application looks ever so slightly slicker. The new content server by way of web is very nice. Allows one to read a book inside the browser, even in offline mode. Makes sharing of books REALLY easy.

I guess that Kovid "borrowed" the concept of the new contentserver with the capability to read the book in your browser, from the alternative contentserver COPS: http://blog.slucas.fr/en/oss/calibre-opds-php-server
The old Calibre contentserver was taxing my hardware, looked ugly and that's why I switched to COPS a long time ago - slick, responsive and with the capability to read your books inside the browser.

I have a SlackBuild ready for calibre-3 and once I have a free VM to compile a package I will have a look at this new feature. But I am probably not going back, my COPS server is perfect: FBReader on Android understands the OPDS URL and shows me a proper library on my tablet where I can download the books I want to read.. wherever I am.

garpu 08-01-2017 11:48 PM

Quote:

Originally Posted by dugan (Post 5724187)
I have a SlackBuild that packages the binary distribution, which has all dependencies included:

https://raw.githubusercontent.com/du...bre.SlackBuild

Having an issue with your slackbuild: https://pastebin.com/N6bF0Xge (Been lax with updates. I've got Calibre 3.0 installed, but was trying to package 3.5.)

dugan 08-02-2017 01:25 AM

Here's an updated SlackBuild that will package 3.5.0 from the binary installer:

Code:

#!/usr/bin/env bash

# This will package the latest version of Calibre for Slackware. Run it
# as root. It will download Calibre, package it, and give you a correctly-
# named, ready-to-install Slackware package in /tmp.

set -e

VERSION=$(wget -O - -o /dev/null http://status.calibre-ebook.com/latest)
TMP=${TMP:-/tmp}
PKG=$TMP/package-calibre
BUILD=1dc

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

rm -rf "$PKG"
rm -rf $"TMP/calibre-installer-cache"

mkdir -p "$PKG/usr/share"
mkdir -p "$PKG/usr/bin"

wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main(install_dir='$PKG/opt', isolated=True)"
LD_LIBRARY_PATH="$PKG/opt/calibre/lib" "$PKG/opt/calibre/bin/calibre_postinstall" --root="$PKG/usr"

for symlink in $(find "$PKG/usr/bin" -maxdepth 1 -type l)
do
        (
        cd "$PKG/usr/bin"
        ln -sf "/opt/calibre/$(basename "$symlink")" .
        )
done

cd "$PKG"
/sbin/makepkg -l y -c n "$TMP/calibre-$VERSION-$ARCH-${BUILD}.txz"

On my system (binary NVidia drivers, -current, ktown), It won't launch on OpenBox, and I could only get it to launch on Xfce by setting QT_SCALE_FACTOR=1 before launching it.

garpu 08-02-2017 01:56 PM

Quote:

Originally Posted by dugan (Post 5743030)
Here's an updated SlackBuild that will package 3.5.0 from the binary installer:
On my system (binary NVidia drivers, -current, ktown), It won't launch on OpenBox, and I could only get it to launch on Xfce by setting QT_SCALE_FACTOR=1 before launching it.

Awesome, thanks! Should've specified I'm on 14.2. Loaded just fine for me, no variable setting needed. :)

dugan 08-02-2017 01:56 PM

Quote:

Originally Posted by garpu (Post 5743420)
Awesome, thanks! Should've specified I'm on 14.2.

How well does it work on 14.2?

EDIT: Saw your update. That's great news! Thanks for testing.

PROBLEMCHYLD 08-02-2017 06:32 PM

I concur. All is working well. Thanks

Diantre 08-06-2017 01:36 AM

Working fine here in 14.2. Thanks dugan for the script.

Just two small things.

1) I think there's a small typo here:

Code:

rm -rf $"TMP/calibre-installer-cache"
2) There's no code to add a slack-desc in the script.

dugan 08-06-2017 02:21 AM

Thanks. The typo is now fixed, and I now also add the slack-desc from SBo.

https://raw.githubusercontent.com/du...bre.SlackBuild

dugan 12-08-2017 12:37 AM

Quote:

Originally Posted by dugan (Post 5743030)
On my system (binary NVidia drivers, -current, ktown), It won't launch on OpenBox, and I could only get it to launch on Xfce by setting QT_SCALE_FACTOR=1 before launching it.

Okay, I finally figured out the magic sauce that KDE (5) adds to get the upstream Calibre builds to work:

Code:

export QT_AUTO_SCREEN_SCALE_FACTOR=0
After adding this, it works in OpenBox and i3. Whereas before, I was getting the error described here:

https://bbs.archlinux.org/viewtopic.php?id=220803
https://www.mobileread.com/forums/sh...d.php?t=278909

After reading the documentation on this option, I'm wondering if the problem might be unique to my setup (my monitor is a TV that definitely doesn't give the correct EDID values):

http://doc.qt.io/qt-5/highdpi.html


All times are GMT -5. The time now is 09:51 AM.