summaryrefslogtreecommitdiff
path: root/libre/calibre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/calibre/PKGBUILD')
-rw-r--r--libre/calibre/PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/libre/calibre/PKGBUILD b/libre/calibre/PKGBUILD
index 25acabc2d..2eacbd6e3 100644
--- a/libre/calibre/PKGBUILD
+++ b/libre/calibre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 128074 2015-02-21 15:29:54Z jelle $
+# $Id: PKGBUILD 128957 2015-03-08 19:47:53Z jelle $
# Maintainer (Arch): Jelle van der Waa <jelle@vdwaa.nl>
# Maintainer (Arch): Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor (Arch): Giovanni Scafora <giovanni@archlinux.org>
@@ -10,7 +10,7 @@
pkgname=calibre
_pkgname=$pkgname-libre
pkgver=2.20.0
-pkgrel=1.parabola1
+pkgrel=2.parabola1
pkgdesc="Ebook management application, without nonfree decompression engine for RAR archives"
arch=('i686' 'x86_64' 'mips64el')
url="http://$pkgname-ebook.com/"
@@ -31,9 +31,11 @@ conflicts=($_pkgname)
install=$pkgname.install
mksource=("http://download.$pkgname-ebook.com/${pkgver}/$pkgname-${pkgver}.tar.xz")
source=("https://repo.parabola.nu/other/${_pkgname}/${_pkgname}-${pkgver}.tar.xz"
+ 'incompatibility-pyqt5.4.1.patch'
'libre.patch')
mkmd5sums=('94f033006e6cc7b96abf62944368fc83')
md5sums=('7511774936f784ff6d716552fd0cedf6'
+ 'cb28c339c0ab543a96e56363eeef3e8c'
'7e964e5c88affc299b69e8c2744a4393')
mksource(){
@@ -54,17 +56,14 @@ prepare(){
# Remove unneeded files and libs
rm -rf resources/${pkgname}-portable.* \
- src/six.py \
src/cherrypy \
src/html5lib \
src/chardet
sed -i "s/shlex.split(ldflags)/& + ['-fPIC']/" setup/extensions.py
- #sed -i -e "s/ldflags = shlex.split(ldflags)/ldflags = shlex.split(ldflags) + ['-fPIC']/" setup/extensions.py
# Use python2
sed -i 's:\(env[ ]\+python$\|/usr/bin/python$\):\12:g' $(find . -regex ".*\.py\|.*\.recipe")
- sed -i "/pyqt_sip_dir/ s:=.*:= '/usr/share/sip/Py2-PyQt5':" setup/build_environment.py
# Desktop integration (e.g. enforce arch defaults)
sed -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \
@@ -80,6 +79,9 @@ prepare(){
-e "s/'ctc-posml'/'text' not in mt and 'pdf' not in mt and 'xhtml'/" \
-e "s/^Name=calibre/Name=Calibre/g" \
-i src/$pkgname/linux.py
+
+ # Fixes FS#43934
+ patch -Np1 -i $srcdir/incompatibility-pyqt5.4.1.patch
}
build() {