Date: Friday, August 24, 2018 @ 05:09:06 Author: eschwartz Revision: 373490
upgpkg: calibre 3.30.0-1 upstream release fix $srcdir references in every python bytecode file Modified: calibre/trunk/PKGBUILD ----------+ PKGBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-08-23 23:18:47 UTC (rev 373489) +++ PKGBUILD 2018-08-24 05:09:06 UTC (rev 373490) @@ -8,7 +8,7 @@ # Contributor: Larry Hajali <[email protected]> pkgname=calibre -pkgver=3.29.0 +pkgver=3.30.0 pkgrel=1 pkgdesc="Ebook management application" arch=('x86_64') @@ -29,7 +29,7 @@ ) source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz" "https://calibre-ebook.com/signatures/${pkgname}-${pkgver}.tar.xz.sig") -sha256sums=('d0577e507e4e7244ce3f3f06acc3b0f3ffb87d26e32d79bfb520872251dc49e4' +sha256sums=('df7d540f99a061698a4ffcd7216c3a33fb266a5cbf511536cad7e268e730fc48' 'SKIP') validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <[email protected]> @@ -78,6 +78,10 @@ cp -a man-pages/ "${pkgdir}/usr/share/man" # Compiling bytecode FS#33392 - python2 -m compileall "${pkgdir}/usr/lib/calibre/" - python2 -O -m compileall "${pkgdir}/usr/lib/calibre/" + # 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) }
