diff options
Diffstat (limited to 'office/calibre-bin')
-rw-r--r-- | office/calibre-bin/calibre-bin.SlackBuild | 58 | ||||
-rw-r--r-- | office/calibre-bin/calibre-bin.info | 12 | ||||
-rw-r--r-- | office/calibre-bin/calibre-ebook-edit.desktop | 10 | ||||
-rw-r--r-- | office/calibre-bin/calibre-gui.desktop | 10 | ||||
-rw-r--r-- | office/calibre-bin/calibre-viewer.desktop | 10 |
5 files changed, 38 insertions, 62 deletions
diff --git a/office/calibre-bin/calibre-bin.SlackBuild b/office/calibre-bin/calibre-bin.SlackBuild index 6cac59e8f6..e01633e816 100644 --- a/office/calibre-bin/calibre-bin.SlackBuild +++ b/office/calibre-bin/calibre-bin.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for calibre-bin -# Copyright 2019-2020, Alexander Verbovetsky, Moscow, Russia +# Copyright 2019-2024, Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,20 +22,29 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=calibre-bin -VERSION=${VERSION:-4.13.0} +VERSION=${VERSION:-7.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i686 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac + ARCH="$( uname -m )" +fi + +case "$ARCH" in + i?86) echo "Support for 32bit CPUs has been dropped because Qt 6 does not support them" + exit 1 ;; + arm*) ARCH=arm ;; +esac + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -45,9 +54,17 @@ 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 + +sed -i "s|$PKG||g" usr/share/bash-completion/completions/ebook-convert cd usr/bin for f in $(find . -maxdepth 1 -type l); do @@ -56,20 +73,9 @@ 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/ +find -L opt/calibre/plugins -type f -name "*.so" -exec chmod 755 {} \; +find -L opt/calibre/lib/calibre-extensions \ + -type f -name "*.so" -exec chmod 755 {} \; chown -R root:root . find -L . \ @@ -88,4 +94,4 @@ mkdir -p install cat $CWD/slack-desc > install/slack-desc cat $CWD/doinst.sh > install/doinst.sh -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/office/calibre-bin/calibre-bin.info b/office/calibre-bin/calibre-bin.info index 6c3fe3f8d7..30bf1c52f7 100644 --- a/office/calibre-bin/calibre-bin.info +++ b/office/calibre-bin/calibre-bin.info @@ -1,10 +1,10 @@ PRGNAM="calibre-bin" -VERSION="4.13.0" +VERSION="7.10.0" HOMEPAGE="https://calibre-ebook.com" -DOWNLOAD="https://download.calibre-ebook.com/4.13.0/calibre-4.13.0-i686.txz" -MD5SUM="922cacb5bb7faf72ed5b4a775164262f" -DOWNLOAD_x86_64="https://download.calibre-ebook.com/4.13.0/calibre-4.13.0-x86_64.txz" -MD5SUM_x86_64="cdab4f5a12164f076d1d524a783e2c61" -REQUIRES="libxkbcommon" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://download.calibre-ebook.com/7.10.0/calibre-7.10.0-x86_64.txz" +MD5SUM_x86_64="f16f8530308b81b5d6ab303890c412d9" +REQUIRES="" MAINTAINER="Alexander Verbovetsky" EMAIL="alik@ejik.org" diff --git a/office/calibre-bin/calibre-ebook-edit.desktop b/office/calibre-bin/calibre-ebook-edit.desktop deleted file mode 100644 index afcebf7333..0000000000 --- a/office/calibre-bin/calibre-ebook-edit.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=E-book Editor -GenericName=Editor for E-books -Comment=Edit E-books in various formats -TryExec=ebook-edit -Exec=ebook-edit --detach %f -Icon=calibre-ebook-edit -Categories=Office; diff --git a/office/calibre-bin/calibre-gui.desktop b/office/calibre-bin/calibre-gui.desktop deleted file mode 100644 index c89ad697b4..0000000000 --- a/office/calibre-bin/calibre-gui.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=calibre -GenericName=E-book library management -Comment=E-book library management: Convert, view, share, catalogue all your e-books -TryExec=calibre -Exec=calibre --detach %F -Icon=calibre-gui -Categories=Office; diff --git a/office/calibre-bin/calibre-viewer.desktop b/office/calibre-bin/calibre-viewer.desktop deleted file mode 100644 index d90b7fd648..0000000000 --- a/office/calibre-bin/calibre-viewer.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=E-book Viewer -GenericName=Viewer for E-books -Comment=Viewer for E-books in all the major formats -TryExec=ebook-viewer -Exec=ebook-viewer --detach %f -Icon=calibre-viewer -Categories=Office;Graphics;Viewer; |