[arch-commits] Commit in calibre/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Wed Oct 30 01:56:27 UTC 2019
Date: Wednesday, October 30, 2019 @ 01:56:26
Author: eschwartz
Revision: 520948
calibre: reindent 2 -> 4
Modified:
calibre/trunk/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 42 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-30 00:35:07 UTC (rev 520947)
+++ PKGBUILD 2019-10-30 01:56:26 UTC (rev 520948)
@@ -31,67 +31,66 @@
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
prepare(){
- cd "${pkgname}-${pkgver}"
+ cd "${pkgname}-${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
+ # 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
- # cherry-picked bits of python2-backports.functools_lru_cache
- # needed for frozen builds + beautifulsoup4
- # see https://github.com/kovidgoyal/calibre/commit/b177f0a1096b4fdabd8772dd9edc66662a69e683#commitcomment-33169700
- rm -r src/backports
+ # cherry-picked bits of python2-backports.functools_lru_cache
+ # needed for frozen builds + beautifulsoup4
+ # see https://github.com/kovidgoyal/calibre/commit/b177f0a1096b4fdabd8772dd9edc66662a69e683#commitcomment-33169700
+ rm -r src/backports
- cd resources
+ cd resources
- # Remove unneeded files
- rm ${pkgname}-portable.* mozilla-ca-certs.pem
+ # Remove unneeded files
+ rm ${pkgname}-portable.* mozilla-ca-certs.pem
- # use system mathjax
- rm -r mathjax
+ # use system mathjax
+ rm -r mathjax
}
build() {
- cd "${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
- 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/mathjax2 --system-mathjax
- LANG='en_US.UTF-8' python2 setup.py rapydscript
+ 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/mathjax2 --system-mathjax
+ LANG='en_US.UTF-8' python2 setup.py rapydscript
}
check() {
- cd "${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
- # without xvfb-run this fails with much "Control socket failed to recv(), resetting"
- # ERROR: test_websocket_perf (calibre.srv.tests.web_sockets.WebSocketTest)
-
- LANG='en_US.UTF-8' xvfb-run python2 setup.py test
+ # without xvfb-run this fails with much "Control socket failed to recv(), resetting"
+ # ERROR: test_websocket_perf (calibre.srv.tests.web_sockets.WebSocketTest)
+ LANG='en_US.UTF-8' xvfb-run python2 setup.py test
}
package() {
- cd "${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
- # If this directory doesn't exist, zsh completion won't install.
- install -d "${pkgdir}/usr/share/zsh/site-functions"
+ # If this directory doesn't exist, zsh completion won't install.
+ install -d "${pkgdir}/usr/share/zsh/site-functions"
- LANG='en_US.UTF-8' python2 setup.py install \
- --staging-root="${pkgdir}/usr" \
- --prefix=/usr
+ LANG='en_US.UTF-8' python2 setup.py install \
+ --staging-root="${pkgdir}/usr" \
+ --prefix=/usr
- cp -a man-pages/ "${pkgdir}/usr/share/man"
+ cp -a man-pages/ "${pkgdir}/usr/share/man"
- # not needed at runtime
- rm -r "${pkgdir}"/usr/share/calibre/rapydscript/
+ # 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}}")"
- python2 -m compileall -d "${_destdir}" "${_file}"
- python2 -O -m compileall -d "${_destdir}" "${_file}"
- done < <(find "${pkgdir}"/usr/lib/ -name '*.py' -print0)
+ # 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}}")"
+ python2 -m compileall -d "${_destdir}" "${_file}"
+ python2 -O -m compileall -d "${_destdir}" "${_file}"
+ done < <(find "${pkgdir}"/usr/lib/ -name '*.py' -print0)
}
More information about the arch-commits
mailing list