summaryrefslogtreecommitdiff
path: root/office/calibre/calibre.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-06-29 12:40:58 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-29 12:40:58 -0500
commit276efb34ffd45f89cb48656808aaae211ed7d984 (patch)
tree56b74d05e31d413aeba916897bdde51c3279a85a /office/calibre/calibre.SlackBuild
parent85b9e6b82cf32ffa5422eaa707e93369fca8b194 (diff)
downloadslackbuilds-276efb34ffd45f89cb48656808aaae211ed7d984.tar.gz
office/calibre: Updated for version 0.7.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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.