[arch-commits] Commit in calibre/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Wed Feb 6 14:56:40 UTC 2019


    Date: Wednesday, February 6, 2019 @ 14:56:40
  Author: eschwartz
Revision: 429737

upgpkg: calibre 3.39.1-1

upstream release
use system mathjax

Modified:
  calibre/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-06 14:19:59 UTC (rev 429736)
+++ PKGBUILD	2019-02-06 14:56:40 UTC (rev 429737)
@@ -7,7 +7,7 @@
 # Contributor: Larry Hajali <larryhaja at gmail.com>
 
 pkgname=calibre
-pkgver=3.38.1
+pkgver=3.39.1
 pkgrel=1
 pkgdesc="Ebook management application"
 arch=('x86_64')
@@ -14,7 +14,7 @@
 url="https://calibre-ebook.com/"
 license=('GPL3')
 depends=('python2-six' 'python2-dateutil' 'python2-css-parser' 'python2-dukpy'
-         'python2-mechanize' 'podofo' 'libwmf' 'jxrlib'
+         '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'
@@ -27,7 +27,7 @@
             'poppler: required for converting pdf to html')
 source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz"
         "https://calibre-ebook.com/signatures/${pkgname}-${pkgver}.tar.xz.sig")
-sha256sums=('60335b506d1e975b59f9cc81cfb982854c33b8d50bd81ed073fa84b994bddb1d'
+sha256sums=('50bb56ca9455464495c646688722cb07199ed74a3a2eb3dc4f3b3e609be68121'
             'SKIP')
 validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
 
@@ -34,9 +34,6 @@
 prepare(){
   cd "${pkgname}-${pkgver}"
 
-  # Remove unneeded files
-  rm -rf resources/${pkgname}-portable.*
-
   # Desktop integration (e.g. enforce arch defaults)
   sed -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \
       -e "/cc(\['xdg-desktop-menu', 'forceupdate'\])/d" \
@@ -44,6 +41,17 @@
       -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() {
@@ -51,6 +59,8 @@
 
   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() {
@@ -76,6 +86,9 @@
 
   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



More information about the arch-commits mailing list