Date: Friday, July 29, 2022 @ 10:45:22 Author: alerque Revision: 1259080
archrelease: copy trunk to community-x86_64 Added: calibre/repos/community-x86_64/PKGBUILD (from rev 1259079, calibre/trunk/PKGBUILD) calibre/repos/community-x86_64/keys/ Deleted: calibre/repos/community-x86_64/PKGBUILD calibre/repos/community-x86_64/keys/ ----------+ PKGBUILD | 296 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 148 insertions(+), 148 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-29 10:45:11 UTC (rev 1259079) +++ PKGBUILD 2022-07-29 10:45:22 UTC (rev 1259080) @@ -1,148 +0,0 @@ -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Contributor: Jelle van der Waa <je...@vdwaa.nl> -# Contributor: 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> - -pkgname=calibre -pkgver=6.2.0 -pkgrel=1 -pkgdesc='Ebook management application' -arch=(x86_64) -url=https://calibre-ebook.com -license=(GPL3) -_pydeps=(apsw - beautifulsoup4 - cchardet - css-parser - cssselect - dateutil - dnspython - feedparser - html2text - html5-parser - jeepney - lxml - markdown - mechanize - msgpack - netifaces - pdftotext - pillow - psutil - py7zr - pychm - pycryptodome - pygments - pyqt6 - pyqt6-webengine - regex - unrardll - zeroconf) -depends=(hunspell - hyphen - icu - jxrlib - libmtp - libstemmer - libusb - libwmf - mathjax - mtdev - optipng - podofo - "${_pydeps[@]/#/python-}" - qt6-imageformats - qt6-svg - qt6-webengine - ttf-liberation - uchardet - udisks2) -makedepends=(cmake - pyqt-builder - rapydscript-ng - sip - xdg-utils) -optdepends=('poppler: required for converting pdf to html' - 'speech-dispatcher: TTS support in the viewer') -conflicts=(calibre-common - calibre-python3) -replaces=("${conflicts[@]}") -_archive="$pkgname-$pkgver" -source=("https://download.calibre-ebook.com/$pkgver/$_archive.tar.xz" - "$url/signatures/$_archive.tar.xz.sig") -sha256sums=('dce092915139945abededd9d8620b6208f5ae7fa71d587692bf0606ad7cac69c' - 'SKIP') -validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <ko...@kovidgoyal.net> - -prepare(){ - cd "$_archive" - - # 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 $pkgname-portable.* mozilla-ca-certs.pem - - # use system mathjax - rm -r mathjax -} - -build() { - cd "$_archive" - - 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 "$_archive" - - _test_excludes=( - # merely testing if a runtime-optional feature optdepend is importable - 'speech_dispatcher' - # tests if a completely unused module is bundled - 'pycryptodome' - # only fails on local builds, and that intermittently - 'test_searching' - ) - - LANG='en_US.UTF-8' python setup.py test "${_test_excludes[@]/#/--exclude-test-name=}" -} - -package() { - cd "$_archive" - - # 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}}")" - python -m compileall -d "${_destdir}" "${_file}" - python -O -m compileall -d "${_destdir}" "${_file}" - done < <(find "${pkgdir}"/usr/lib/ -name '*.py' -print0) -} Copied: calibre/repos/community-x86_64/PKGBUILD (from rev 1259079, calibre/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-29 10:45:22 UTC (rev 1259080) @@ -0,0 +1,148 @@ +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Jelle van der Waa <je...@vdwaa.nl> +# Contributor: 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> + +pkgname=calibre +pkgver=6.2.1 +pkgrel=1 +pkgdesc='Ebook management application' +arch=(x86_64) +url=https://calibre-ebook.com +license=(GPL3) +_pydeps=(apsw + beautifulsoup4 + cchardet + css-parser + cssselect + dateutil + dnspython + feedparser + html2text + html5-parser + jeepney + lxml + markdown + mechanize + msgpack + netifaces + pdftotext + pillow + psutil + py7zr + pychm + pycryptodome + pygments + pyqt6 + pyqt6-webengine + regex + unrardll + zeroconf) +depends=(hunspell + hyphen + icu + jxrlib + libmtp + libstemmer + libusb + libwmf + mathjax + mtdev + optipng + podofo + "${_pydeps[@]/#/python-}" + qt6-imageformats + qt6-svg + qt6-webengine + ttf-liberation + uchardet + udisks2) +makedepends=(cmake + pyqt-builder + rapydscript-ng + sip + xdg-utils) +optdepends=('poppler: required for converting pdf to html' + 'speech-dispatcher: TTS support in the viewer') +conflicts=(calibre-common + calibre-python3) +replaces=("${conflicts[@]}") +_archive="$pkgname-$pkgver" +source=("https://download.calibre-ebook.com/$pkgver/$_archive.tar.xz" + "$url/signatures/$_archive.tar.xz.sig") +sha256sums=('eae23824750360d4486aa6275364dd00926b1f363c50404171fcacefbf8f7476' + 'SKIP') +validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <ko...@kovidgoyal.net> + +prepare(){ + cd "$_archive" + + # 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 $pkgname-portable.* mozilla-ca-certs.pem + + # use system mathjax + rm -r mathjax +} + +build() { + cd "$_archive" + + 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 "$_archive" + + _test_excludes=( + # merely testing if a runtime-optional feature optdepend is importable + 'speech_dispatcher' + # tests if a completely unused module is bundled + 'pycryptodome' + # only fails on local builds, and that intermittently + 'test_searching' + ) + + LANG='en_US.UTF-8' python setup.py test "${_test_excludes[@]/#/--exclude-test-name=}" +} + +package() { + cd "$_archive" + + # 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}}")" + python -m compileall -d "${_destdir}" "${_file}" + python -O -m compileall -d "${_destdir}" "${_file}" + done < <(find "${pkgdir}"/usr/lib/ -name '*.py' -print0) +}