[arch-commits] Commit in calibre/repos/community-x86_64 (PKGBUILD PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Dec 11 05:14:58 UTC 2020
Date: Friday, December 11, 2020 @ 05:14:57
Author: eschwartz
Revision: 773104
archrelease: copy trunk to community-x86_64
Added:
calibre/repos/community-x86_64/PKGBUILD
(from rev 773103, calibre/trunk/PKGBUILD)
Deleted:
calibre/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 208 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 104 insertions(+), 104 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-11 05:14:39 UTC (rev 773103)
+++ PKGBUILD 2020-12-11 05:14:57 UTC (rev 773104)
@@ -1,104 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Petrov Roman <nwhisper at gmail.com>
-# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com>
-# Contributor: Larry Hajali <larryhaja at gmail.com>
-
-pkgbase=calibre
-pkgname=calibre
-pkgver=5.6.0
-pkgrel=2
-pkgdesc="Ebook management application"
-arch=('x86_64')
-url="https://calibre-ebook.com/"
-license=('GPL3')
-_py_deps=('apsw' 'beautifulsoup4' 'cssselect' 'css-parser' 'dateutil' 'dbus' 'dnspython'
- 'feedparser' 'html2text' 'html5-parser' 'lxml' 'markdown' 'mechanize' 'msgpack'
- 'netifaces' 'unrardll' 'pillow' 'psutil' 'pychm' 'pygments' 'pyqt5'
- 'pyqtwebengine' 'regex' 'zeroconf')
-depends=('hunspell' 'hyphen' 'icu' 'jxrlib' 'libmtp' 'libusb'
- 'libwmf' 'mathjax' 'mtdev' 'optipng' 'podofo'
- "${_py_deps[@]/#/python-}" 'qt5-svg' 'udisks2')
-makedepends=('qt5-x11extras' 'sip5' 'pyqt-builder' 'xdg-utils' 'rapydscript-ng')
-checkdepends=('xorg-server-xvfb')
-optdepends=('poppler: required for converting pdf to html')
-conflicts=('calibre-common' 'calibre-python3')
-replaces=('calibre-common' 'calibre-python3')
-source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz"
- "https://calibre-ebook.com/signatures/${pkgbase}-${pkgver}.tar.xz.sig")
-sha256sums=('484a2e120fdbcff6c544d4c216afef0ff784c7665d3fd44d98acb0420d8f5e55'
- 'SKIP')
-b2sums=('44941c50873c285aa552c5b4ac716e5d3dd6bc3e1a4f13b1003d42adb808566ec3a5083c683a40d9679524e4ae70eed6ec8bc4c70770991f9791bcea25387c42'
- 'SKIP')
-validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
-
-prepare(){
- cd "${pkgbase}-${pkgver}"
-
- # Desktop integration (e.g. enforce arch defaults)
- # Use uppercase naming scheme, don't delete config files under fakeroot.
- sed -e "/import config_dir/,/os.rmdir(config_dir)/d" \
- -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 ${pkgbase}-portable.* mozilla-ca-certs.pem
-
- # use system mathjax
- rm -r mathjax
-}
-
-build() {
- cd "${pkgbase}-${pkgver}"
-
- LANG='en_US.UTF-8' python setup.py build
- LANG='en_US.UTF-8' python setup.py gui
- LANG='en_US.UTF-8' python setup.py mathjax --path-to-mathjax /usr/share/mathjax --system-mathjax
- LANG='en_US.UTF-8' python setup.py rapydscript
-}
-
-check() {
- cd "${pkgbase}-${pkgver}"
-
- _test_excludes=(
- # merely testing if a runtime-optional feature works, but is not
- # operative yet e.g. only tries checking if the optdepend is importable
- 'speech_dispatcher'
- # tests if a completely unused module is bundled
- 'pycryptodome'
- )
-
- # without xvfb-run this fails with much "Control socket failed to recv(), resetting"
- # ERROR: test_websocket_perf (calibre.srv.tests.web_sockets.WebSocketTest)
- # one or two tests are a bit flaky, but the python3 build seems to succeed more often
- LANG='en_US.UTF-8' xvfb-run python setup.py test "${_test_excludes[@]/#/--exclude-test-name=}"
-}
-
-package() {
- cd "${pkgbase}-${pkgver}"
-
- # If this directory doesn't exist, zsh completion won't install.
- install -d "${pkgdir}/usr/share/zsh/site-functions"
-
- LANG='en_US.UTF-8' python setup.py install \
- --staging-root="${pkgdir}/usr" \
- --prefix=/usr
-
- 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
- _destdir="$(dirname "${_file#${pkgdir}}")"
- python3 -m compileall -d "${_destdir}" "${_file}"
- python3 -O -m compileall -d "${_destdir}" "${_file}"
- done < <(find "${pkgdir}"/usr/lib/ -name '*.py' -print0)
-}
Copied: calibre/repos/community-x86_64/PKGBUILD (from rev 773103, calibre/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-11 05:14:57 UTC (rev 773104)
@@ -0,0 +1,104 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Petrov Roman <nwhisper at gmail.com>
+# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com>
+# Contributor: Larry Hajali <larryhaja at gmail.com>
+
+pkgbase=calibre
+pkgname=calibre
+pkgver=5.7.0
+pkgrel=1
+pkgdesc="Ebook management application"
+arch=('x86_64')
+url="https://calibre-ebook.com/"
+license=('GPL3')
+_py_deps=('apsw' 'beautifulsoup4' 'cssselect' 'css-parser' 'dateutil' 'dbus' 'dnspython'
+ 'feedparser' 'html2text' 'html5-parser' 'lxml' 'markdown' 'mechanize' 'msgpack'
+ 'netifaces' 'unrardll' 'pillow' 'psutil' 'pychm' 'pygments' 'pyqt5'
+ 'pyqtwebengine' 'regex' 'zeroconf')
+depends=('hunspell' 'hyphen' 'icu' 'jxrlib' 'libmtp' 'libusb'
+ 'libwmf' 'mathjax' 'mtdev' 'optipng' 'podofo'
+ "${_py_deps[@]/#/python-}" 'qt5-svg' 'udisks2')
+makedepends=('qt5-x11extras' 'sip5' 'pyqt-builder' 'xdg-utils' 'rapydscript-ng')
+checkdepends=('xorg-server-xvfb')
+optdepends=('poppler: required for converting pdf to html'
+ 'speech-dispatcher: TTS support in the viewer')
+conflicts=('calibre-common' 'calibre-python3')
+replaces=('calibre-common' 'calibre-python3')
+source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz"
+ "https://calibre-ebook.com/signatures/${pkgbase}-${pkgver}.tar.xz.sig")
+sha256sums=('31786bd09c551e87fcf2fe6544174099b0cac0e221f1ff73652c8e43e913b6b3'
+ 'SKIP')
+b2sums=('265e33ddf8cc24ac71e68ea1146acdc14b3c47dc5aaa7fe4be3bc384678b1cc09b8835d209a4d2ca52832f73bada86d0d17a1c2319a58e451ee97a11a2da7f43'
+ 'SKIP')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
+
+prepare(){
+ cd "${pkgbase}-${pkgver}"
+
+ # Desktop integration (e.g. enforce arch defaults)
+ # Use uppercase naming scheme, don't delete config files under fakeroot.
+ sed -e "/import config_dir/,/os.rmdir(config_dir)/d" \
+ -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 ${pkgbase}-portable.* mozilla-ca-certs.pem
+
+ # use system mathjax
+ rm -r mathjax
+}
+
+build() {
+ cd "${pkgbase}-${pkgver}"
+
+ LANG='en_US.UTF-8' python setup.py build
+ LANG='en_US.UTF-8' python setup.py gui
+ LANG='en_US.UTF-8' python setup.py mathjax --path-to-mathjax /usr/share/mathjax --system-mathjax
+ LANG='en_US.UTF-8' python setup.py rapydscript
+}
+
+check() {
+ cd "${pkgbase}-${pkgver}"
+
+ _test_excludes=(
+ # merely testing if a runtime-optional feature optdepend is importable
+ 'speech_dispatcher'
+ # tests if a completely unused module is bundled
+ 'pycryptodome'
+ )
+
+ # without xvfb-run this fails with much "Control socket failed to recv(), resetting"
+ # ERROR: test_websocket_perf (calibre.srv.tests.web_sockets.WebSocketTest)
+ # one or two tests are a bit flaky, but the python3 build seems to succeed more often
+ LANG='en_US.UTF-8' xvfb-run python setup.py test "${_test_excludes[@]/#/--exclude-test-name=}"
+}
+
+package() {
+ cd "${pkgbase}-${pkgver}"
+
+ # If this directory doesn't exist, zsh completion won't install.
+ install -d "${pkgdir}/usr/share/zsh/site-functions"
+
+ LANG='en_US.UTF-8' python setup.py install \
+ --staging-root="${pkgdir}/usr" \
+ --prefix=/usr
+
+ 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
+ _destdir="$(dirname "${_file#${pkgdir}}")"
+ python3 -m compileall -d "${_destdir}" "${_file}"
+ python3 -O -m compileall -d "${_destdir}" "${_file}"
+ done < <(find "${pkgdir}"/usr/lib/ -name '*.py' -print0)
+}
More information about the arch-commits
mailing list