aboutsummaryrefslogtreecommitdiff
path: root/office/calibre-bin
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2020-12-26 14:20:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-26 14:20:48 +0700
commit93ddca68300284be91e4e0d23134f05e48dc3c20 (patch)
tree6859924a75ce60a27e1359240589dd064e9d2e52 /office/calibre-bin
parentfeb3497ae62b0704dfd0df297d3b9afe5c2336ba (diff)
office/calibre-bin: Updated for version 5.8.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/calibre-bin')
-rw-r--r--office/calibre-bin/calibre-bin.SlackBuild27
-rw-r--r--office/calibre-bin/calibre-bin.info10
2 files changed, 14 insertions, 23 deletions
diff --git a/office/calibre-bin/calibre-bin.SlackBuild b/office/calibre-bin/calibre-bin.SlackBuild
index d7ff9345b0281..e746d657f1290 100644
--- a/office/calibre-bin/calibre-bin.SlackBuild
+++ b/office/calibre-bin/calibre-bin.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=calibre-bin
-VERSION=${VERSION:-5.7.2}
+VERSION=${VERSION:-5.8.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -45,9 +45,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-mkdir -p opt/calibre usr/{share/zsh/site-functions,bin}
+mkdir -p opt/calibre usr/bin \
+ usr/share/{desktop-directories,applications,metainfo,mime/packages,icons/hicolor,zsh/site-functions}
tar xvf $CWD/${PRGNAM%-bin}-$VERSION-$ARCH.txz -C opt/calibre
-opt/calibre/calibre_postinstall --root=usr
+XDG_DATA_DIRS=$PKG/usr/share XDG_CONFIG_HOME=$PKG/root/.config opt/calibre/calibre_postinstall --root=$PKG/usr
+rmdir -p root/.config
+shopt -s extglob
+rm -r usr/share/{desktop-directories,mime/!(packages)}
+shopt -u extglob
+rm -f usr/share/applications/mimeinfo.cache
cd usr/bin
for f in $(find . -maxdepth 1 -type l); do
@@ -56,21 +62,6 @@ done
rm calibre-uninstall
cd ../..
-mkdir -p usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128,256x256}/apps
-cp -a opt/calibre/resources/images/{lt,tweak,viewer}.png \
- usr/share/icons/hicolor/256x256/apps
-for s in 16 32 48 64 128; do
- convert opt/calibre/resources/images/lt.png -resize ${s}x${s} \
- usr/share/icons/hicolor/${s}x${s}/apps/${PRGNAM%-bin}-gui.png
- convert opt/calibre/resources/images/viewer.png -resize ${s}x${s} \
- usr/share/icons/hicolor/${s}x${s}/apps/${PRGNAM%-bin}-viewer.png
- convert opt/calibre/resources/images/tweak.png -resize ${s}x${s} \
- usr/share/icons/hicolor/${s}x${s}/apps/${PRGNAM%-bin}-ebook-edit.png
-done
-
-mkdir -p usr/share/applications
-cp -a $CWD/calibre-{ebook-edit,viewer,gui}.desktop usr/share/applications/
-
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
diff --git a/office/calibre-bin/calibre-bin.info b/office/calibre-bin/calibre-bin.info
index feff4f3629897..89f34cbe61e78 100644
--- a/office/calibre-bin/calibre-bin.info
+++ b/office/calibre-bin/calibre-bin.info
@@ -1,10 +1,10 @@
PRGNAM="calibre-bin"
-VERSION="5.7.2"
+VERSION="5.8.1"
HOMEPAGE="https://calibre-ebook.com"
-DOWNLOAD="https://download.calibre-ebook.com/5.7.2/calibre-5.7.2-i686.txz"
-MD5SUM="4e8efe9f9115e8f8e10ce8181e65b97d"
-DOWNLOAD_x86_64="https://download.calibre-ebook.com/5.7.2/calibre-5.7.2-x86_64.txz"
-MD5SUM_x86_64="ef3c2525a48a318f46b688d39d5f0f53"
+DOWNLOAD="https://download.calibre-ebook.com/5.8.1/calibre-5.8.1-i686.txz"
+MD5SUM="d507140845d3a635e3d01363ffc55733"
+DOWNLOAD_x86_64="https://download.calibre-ebook.com/5.8.1/calibre-5.8.1-x86_64.txz"
+MD5SUM_x86_64="cb029168b47d66fd9335729957dc111d"
REQUIRES="libxkbcommon"
MAINTAINER="Alexander Verbovetsky"
EMAIL="alik@ejik.org"