summaryrefslogtreecommitdiff
path: root/office/calibre/calibre.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/calibre/calibre.SlackBuild')
-rw-r--r--office/calibre/calibre.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/office/calibre/calibre.SlackBuild b/office/calibre/calibre.SlackBuild
index 7dd5825e25..18a1bcdbcf 100644
--- a/office/calibre/calibre.SlackBuild
+++ b/office/calibre/calibre.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=calibre
-VERSION=0.7.2
+VERSION=0.7.4
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,19 +70,17 @@ find . \
-exec chmod 644 {} \;
# Fix man pages.
-patch -p1 < $CWD/patches/fix-manpages.patch
+patch -p1 < $CWD/patches/manpages-installation.patch
# Remove desktop integration. We'll do that later.
patch -p1 < $CWD/patches/remove-desktop-integration.patch
# Fix calibre module location.
patch -p1 < $CWD/patches/calibre-module-fix.patch
-# Fix version info.
-sed -i "s|0.7.1|$VERSION|" src/calibre/{constants.py,translations/calibre.pot}
CFLAGS="$SLKCFLAGS" python setup.py build
# We have to fake out CALIBRE_CONFIG_DIRECTORY if there is a current
-# calibre installation while the install process takes place. :(
-mkdir -p $PWD/tmp/config
+# calibre installation while the install process takes place. :/
+mkdir -p "$PWD/tmp/config"
CALIBRE_CONFIG_DIRECTORY="$PWD/tmp/config" \
python setup.py install \
@@ -98,8 +96,7 @@ python setup.py install \
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Fix the man pages
-for i in $PKG/usr/man/man?/*.bz2 ; do bzip2 -d $i ; done
+# Fix the man pages.
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Fix permissions on calibre's bash completion.