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.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/office/calibre/calibre.SlackBuild b/office/calibre/calibre.SlackBuild
index 9dc5e73706..e3dbac7579 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=${VERSION:-1.15.0}
+VERSION=${VERSION:-1.20.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -146,6 +146,13 @@ for FONT in $PKG/usr/share/$PRGNAM/fonts/liberation/*; do
fi
done
+# Remove $PKG and $TMP from file metadata.
+find $PKG -iname "*_ui.py" -exec sed -i "s|$TMP||" '{}' \;
+for i in $(find $PKG/usr/share/icons -iname "*.png"); do
+ convert $i -set filename "$(echo $i | sed "s|$PKG||")" $i
+ convert $i -set svg:base-uri "$(echo $i | sed "s|$TMP/||")" $i
+done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE* Changelog.yaml COPYRIGHT README.md \