diff --git a/xap/calibre/calibre-2.85.1.tar.bz2.sha256 b/xap/calibre/calibre-2.85.1.tar.bz2.sha256
new file mode 100644
index 00000000..35f84802
--- /dev/null
+++ b/xap/calibre/calibre-2.85.1.tar.bz2.sha256
@@ -0,0 +1 @@
+8c8db280c51b26284bff1c066fb503ecef9e1f15f7e2e7b4f705c817ee041abd calibre-2.85.1.tar.bz2
diff --git a/xap/calibre/calibre.SlackBuild b/xap/calibre/calibre.SlackBuild
index 52358850..ea4f57fc 100755
--- a/xap/calibre/calibre.SlackBuild
+++ b/xap/calibre/calibre.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
-# Copyright (C) 2012,2014 Damien Goutte-Gattat
+# Copyright (C) 2012,2014,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@@ -26,12 +26,13 @@
# .
#
# Depends: l/dnspython, l/python-cssutils, l/python-dateutil
-# Depends: l/python-lxml, l/python-mechanize, l/python-netifaces
-# Depends: l/python-psutil, l/podofo, l/apsw
+# Depends: l/msgpack-python, l/pygments, l/pycrypto, l/apsw, l/libwebp
+# Depends: l/python-lxml, l/python-netifaces, l/python-psutil, l/podofo
+# Depends: l/PyQt5, ap/optipng, l/easylzma
# Source package infos
NAMESRC=${NAMESRC:-calibre}
-VERSION=${VERSION:-1.41.0}
+VERSION=${VERSION:-2.85.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
# Build infos
@@ -77,6 +78,7 @@ esac
if [ ! -f $ARCHIVE ]; then
curl -L http://status.calibre-ebook.com/dist/src > $ARCHIVE
fi
+sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@@ -104,6 +106,25 @@ install -m 644 COPYRIGHT Changelog.old.yaml Changelog.yaml LICENSE \
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
+# Add dependency infos
+cat < $PKG/install/slack-required
+PyQt5
+apsw
+dnspython
+easylzma
+libwebp
+msgpack-python
+optipng
+podofo
+pycrypto
+pygments
+python-cssutils
+python-dateutil
+python-lxml
+python-netifaces
+python-psutil
+EOF
+
# Package the tree
cd $PKG
mkdir -p $OUT