Date: Friday, April 30, 2021 @ 10:50:32 Author: eschwartz Revision: 925335
archrelease: copy trunk to community-x86_64 Added: calibre/repos/community-x86_64/PKGBUILD (from rev 925334, calibre/trunk/PKGBUILD) Deleted: calibre/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 212 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 106 insertions(+), 106 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-04-30 10:50:12 UTC (rev 925334) +++ PKGBUILD 2021-04-30 10:50:32 UTC (rev 925335) @@ -1,106 +0,0 @@ -# Maintainer: Jelle van der Waa <je...@vdwaa.nl> -# Maintainer: Eli Schwartz <eschwa...@archlinux.org> -# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> -# Contributor: Giovanni Scafora <giova...@archlinux.org> -# Contributor: Petrov Roman <nwhis...@gmail.com> -# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com> -# Contributor: Larry Hajali <larryh...@gmail.com> - -pkgbase=calibre -pkgname=calibre -pkgver=5.16.1 -pkgrel=1 -pkgdesc="Ebook management application" -arch=('x86_64') -url="https://calibre-ebook.com/" -license=('GPL3') -_py_deps=('apsw' 'beautifulsoup4' 'cchardet' 'cssselect' 'css-parser' 'dateutil' 'dbus' 'dnspython' - 'feedparser' 'html2text' 'html5-parser' 'lxml' 'markdown' 'mechanize' 'msgpack' - 'netifaces' 'unrardll' 'pillow' 'psutil' 'py7zr' 'pychm' 'pygments' 'pyqt5' - 'pyqtwebengine' 'regex' 'zeroconf') -depends=('hunspell' 'hyphen' 'icu' 'jxrlib' 'libmtp' 'libusb' - 'libwmf' 'mathjax' 'mtdev' 'optipng' 'podofo' - "${_py_deps[@]/#/python-}" 'qt5-imageformats' 'qt5-svg' 'ttf-liberation' 'udisks2') -makedepends=('qt5-x11extras' 'sip' '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=('9535c25b430634e7b379c6863bd736246538ca5c293e605a3174d8de72cd72b1' - 'SKIP') -b2sums=('71114eed723180142f5428a680d8c5ceabcd007acbc6a70a9298e45a9f21fc793f0ef86bf60b36c96bbd15e9e3f8d8638d179872fb6ff1f9b9f5e31a93e65ba1' - 'SKIP') -validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <ko...@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 - python setup.py liberation_fonts --path-to-liberation_fonts /usr/share/fonts/liberation --system-liberation_fonts - 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 \ - --system-plugins-location=/usr/share/calibre/system-plugins - - 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 925334, calibre/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-04-30 10:50:32 UTC (rev 925335) @@ -0,0 +1,106 @@ +# Maintainer: Jelle van der Waa <je...@vdwaa.nl> +# Maintainer: Eli Schwartz <eschwa...@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: Giovanni Scafora <giova...@archlinux.org> +# Contributor: Petrov Roman <nwhis...@gmail.com> +# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com> +# Contributor: Larry Hajali <larryh...@gmail.com> + +pkgbase=calibre +pkgname=calibre +pkgver=5.17.0 +pkgrel=1 +pkgdesc="Ebook management application" +arch=('x86_64') +url="https://calibre-ebook.com/" +license=('GPL3') +_py_deps=('apsw' 'beautifulsoup4' 'cchardet' 'cssselect' 'css-parser' 'dateutil' 'dbus' 'dnspython' + 'feedparser' 'html2text' 'html5-parser' 'lxml' 'markdown' 'mechanize' 'msgpack' + 'netifaces' 'unrardll' 'pillow' 'psutil' 'py7zr' 'pychm' 'pygments' 'pyqt5' + 'pyqtwebengine' 'regex' 'zeroconf') +depends=('hunspell' 'hyphen' 'icu' 'jxrlib' 'libmtp' 'libusb' + 'libwmf' 'mathjax' 'mtdev' 'optipng' 'podofo' + "${_py_deps[@]/#/python-}" 'qt5-imageformats' 'qt5-svg' 'ttf-liberation' 'udisks2') +makedepends=('qt5-x11extras' 'sip' '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=('add8812f7637abfd3015f5861388c69166a4815f2103d1e30dc297b28ead56bb' + 'SKIP') +b2sums=('e2707985df0d39f05dfaa35f41d48f82bfc2643855e2b830b9662bf113104f57885689b3000d123edeb5b1ac50f9f01ac809aabe81a8c4da2bde008926bb3893' + 'SKIP') +validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <ko...@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 + python setup.py liberation_fonts --path-to-liberation_fonts /usr/share/fonts/liberation --system-liberation_fonts + 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 \ + --system-plugins-location=/usr/share/calibre/system-plugins + + 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) +}