summaryrefslogtreecommitdiff
path: root/libre/calibre/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-26 12:25:53 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-26 12:25:53 +0100
commit5208acd9e5754a3f88b5ca7017c37c3b456b5af9 (patch)
treeb02d60f063a95bb32e61e8700217389cfc013afe /libre/calibre/PKGBUILD
parent215f840f5e976ab013c774112e240dfec8e53b18 (diff)
downloadabslibre-5208acd9e5754a3f88b5ca7017c37c3b456b5af9.tar.gz
abslibre-5208acd9e5754a3f88b5ca7017c37c3b456b5af9.tar.bz2
abslibre-5208acd9e5754a3f88b5ca7017c37c3b456b5af9.zip
libre/calibre: updated to 3.39.1
Diffstat (limited to 'libre/calibre/PKGBUILD')
-rw-r--r--libre/calibre/PKGBUILD33
1 files changed, 23 insertions, 10 deletions
diff --git a/libre/calibre/PKGBUILD b/libre/calibre/PKGBUILD
index 96e96370c..4b3c72685 100644
--- a/libre/calibre/PKGBUILD
+++ b/libre/calibre/PKGBUILD
@@ -15,8 +15,8 @@
# - removed decrompession engine for rar archives
pkgname=calibre
-pkgver=3.33.1
-pkgrel=2
+pkgver=3.39.1
+pkgrel=1
pkgrel+=.par1
pkgdesc="Ebook management application"
pkgdesc+=", without nonfree decompression engine for RAR archives"
@@ -24,8 +24,8 @@ arch=('x86_64')
arch+=('i686' 'armv7h')
url="https://calibre-ebook.com/"
license=('GPL3')
-depends=('python2-six' 'python2-dateutil' 'python2-cssutils' 'python2-dukpy'
- 'python2-mechanize' 'podofo' 'libwmf' 'jxrlib'
+depends=('python2-six' 'python2-dateutil' 'python2-css-parser' 'python2-dukpy'
+ 'python2-mechanize' 'podofo' 'libwmf' 'jxrlib' 'mathjax'
'chmlib' 'python2-lxml' 'libusbx' 'python2-html5-parser'
'python2-pillow' 'shared-mime-info' 'python2-dnspython' 'python2-msgpack'
'python2-pyqt5' 'python2-psutil' 'icu' 'libmtp' 'python2-dbus'
@@ -39,17 +39,14 @@ optdepends=('ipython2: to use calibre-debug'
source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz"
"https://calibre-ebook.com/signatures/${pkgname}-${pkgver}.tar.xz.sig"
'libre.patch')
-sha256sums=('92bc940ac01e888058a5baa171dda8c75e9993dd419b58df3a11e3e55e3875ac'
+sha256sums=('50bb56ca9455464495c646688722cb07199ed74a3a2eb3dc4f3b3e609be68121'
'SKIP'
- '2f0d351ea3345fad6952ca15af1bbec5d88ed5b048303f4de960d5a8833868b6')
+ '2990c382bcfaa36e3162261eed9acae7e905b75471bcdd75930ddd9a33173f6c')
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid@kovidgoyal.net>
-prepare() {
+prepare(){
cd "${pkgname}-${pkgver}"
- # Remove unneeded files
- rm -rf resources/${pkgname}-portable.*
-
# fix freedom issues
rm -v imgsrc/mimetypes/rar.svg
rm -v src/calibre/ebooks/metadata/rar.py
@@ -64,6 +61,17 @@ prepare() {
-e "s/'ctc-posml'/'text' not in mt and 'pdf' not in mt and 'xhtml'/" \
-e "s/^Name=calibre/Name=Calibre/g" \
-i src/calibre/linux.py
+
+ cd resources
+
+ # Remove unneeded files
+ rm ${pkgname}-portable.* mozilla-ca-certs.pem
+
+ # tarball cache from calibre 4.x
+ rm editor.js viewer.{js,html}
+
+ # use system mathjax
+ rm -r mathjax
}
build() {
@@ -71,6 +79,8 @@ build() {
LANG='en_US.UTF-8' python2 setup.py build
LANG='en_US.UTF-8' python2 setup.py gui
+ LANG='en_US.UTF-8' python2 setup.py mathjax --path-to-mathjax /usr/share/mathjax --system-mathjax
+ LANG='en_US.UTF-8' python2 setup.py rapydscript
}
check() {
@@ -96,6 +106,9 @@ package() {
cp -a man-pages/ "${pkgdir}/usr/share/man"
+ # not needed at runtime
+ rm -r "${pkgdir}"/usr/share/calibre/rapydscript/
+
# Compiling bytecode FS#33392
# This is kind of ugly but removes traces of the build root.
while read -rd '' _file; do