diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-09-12 01:14:26 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-09-12 23:08:53 -0500 |
commit | 076d539a097d737ff2641722b3560fbe0e791472 (patch) | |
tree | 70be20abd0931d0ff448aaae8b0e29a216da0e0e /office/calibre/calibre.SlackBuild | |
parent | e7175392ca69a33ef2dc178c0a0318e39a7783be (diff) |
office/calibre: Updated for version 0.7.18.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/calibre/calibre.SlackBuild')
-rw-r--r-- | office/calibre/calibre.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/office/calibre/calibre.SlackBuild b/office/calibre/calibre.SlackBuild index 18a1bcdbcf27..1fa053c81126 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.4 +VERSION=0.7.18 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,6 +35,7 @@ if [ -z "$ARCH" ]; then esac fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -96,7 +97,6 @@ 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. find $PKG/usr/man -type f -exec gzip -9 {} \; # Fix permissions on calibre's bash completion. @@ -107,14 +107,19 @@ install -D -m 644 $CWD/desktop/$PRGNAM-gui.desktop \ $PKG/usr/share/applications/$PRGNAM-gui.desktop install -D -m 644 $CWD/desktop/$PRGNAM-lrfviewer.desktop \ $PKG/usr/share/applications/$PRGNAM-lrfviewer.desktop -install -D -m 644 $CWD/desktop/$PRGNAM-gui.png \ - $PKG/usr/share/pixmaps/$PRGNAM-gui.png -install -D -m 644 $CWD/desktop/$PRGNAM-viewer.png \ - $PKG/usr/share/pixmaps/$PRGNAM-viewer.png install -D -m 644 $CWD/desktop/$PRGNAM-ebook-viewer.desktop \ $PKG/usr/share/applications/$PRGNAM-ebook-viewer.desktop install -D -m 644 $CWD/desktop/$PRGNAM-mimetypes \ $PKG/usr/share/mime/packages/$PRGNAM-mimetypes +for i in 16 24 32 64 96 128; do + convert resources/images/lt.png -resize ${i}x${i}! $PRGNAM-gui-${i}.png + convert -background none resources/images/viewer.png \ + -resize ${i}x${i}! $PRGNAM-viewer-${i}.png + install -D -m 0644 $PRGNAM-gui-${i}.png \ + $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM-gui.png + install -D -m 0644 $PRGNAM-viewer-${i}.png \ + $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM-viewer.png +done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |