summaryrefslogtreecommitdiff
path: root/libre/calibre
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@openmailbox.org>2017-06-25 03:46:14 +0000
committerJesús Eduardo <heckyel@openmailbox.org>2017-06-25 03:46:14 +0000
commitc4d932795de4399151d624622da341d158ab93fb (patch)
treecb0fae8d2a41e431a9a287d9d58cd3d37f2ef533 /libre/calibre
parent09b0c9d926c8d0781ebb1d45a4e75f47ee77aa4e (diff)
downloadabslibre-c4d932795de4399151d624622da341d158ab93fb.tar.gz
abslibre-c4d932795de4399151d624622da341d158ab93fb.tar.bz2
abslibre-c4d932795de4399151d624622da341d158ab93fb.zip
calibre: fixed, now version stable
Diffstat (limited to 'libre/calibre')
-rw-r--r--libre/calibre/PKGBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/libre/calibre/PKGBUILD b/libre/calibre/PKGBUILD
index 2eb27fe36..21a8bf8c5 100644
--- a/libre/calibre/PKGBUILD
+++ b/libre/calibre/PKGBUILD
@@ -11,9 +11,9 @@
# Maintainer: Jesús E.<heckyel@parabola.nu>
pkgname=calibre
-_commit=5f502b4526b4e0935dfa0c5e4d91c6e39abcde16
+_commit=851270ac5cc2e5d50d1ec8847aa8e2e933992577
pkgver=3.1.1
-pkgrel=1.parabola1
+pkgrel=1.parabola2
pkgdesc="Ebook management application, without nonfree decompression engine for RAR archives"
arch=('x86_64' 'i686' 'armv7h')
url="https://calibre-ebook.com/"
@@ -24,7 +24,7 @@ depends=('python2-six' 'python2-dateutil' 'python2-cssutils' 'python2-cherrypy'
'python2-pillow' 'shared-mime-info' 'python2-dnspython'
'python2-pyqt5' 'python2-psutil' 'icu' 'libmtp' 'python2-dbus'
'python2-netifaces' 'python2-cssselect' 'python2-apsw' 'qt5-webkit'
- 'qt5-svg' 'python2-chardet' 'python2-msgpack' 'python2-regex' 'python2-pygments' 'mtdev'
+ 'qt5-svg' 'python2-chardet' 'python2-regex' 'python2-msgpack' 'python2-pygments' 'mtdev'
'desktop-file-utils' 'gtk-update-icon-cache' 'optipng' 'udisks2')
makedepends=('qt5-x11extras' 'xdg-utils')
optdepends=('ipython2: to use calibre-debug'
@@ -33,7 +33,7 @@ replaces=($pkgname-libre)
conflicts=($pkgname-libre)
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/Megver83/calibre/repository/archive.tar.gz?ref=$pkgver"
"$pkgname-$pkgver.tar.gz.sig::https://gitlab.com/Megver83/calibre/raw/signatures/$pkgname-$pkgver-${_commit}.tar.gz.sig")
-sha512sums=('175732ff75f1fdde44a5cf2c90f896572771f2f4d59fe0c736fc05464df3c3c1a57b17406bf251f819c940a325bb270f413990fdf7bfcc965b611e873efc6eb3'
+sha512sums=('d4d0cfa765a9947c90d42c744a109532379d207a844938669152c3ebcf18130be917c02b372f57bd4ddca6c97cebdd012114fe3c1116de858f1670909ad1c899'
'SKIP')
validpgpkeys=('6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
'916FFBC76D2E641BA416BA53364F4E1483446AC5' # Jesús E.
@@ -41,6 +41,15 @@ validpgpkeys=('6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
prepare() {
mv "$pkgname-$pkgver-${_commit}" "$pkgname-$pkgver"
+
+ cd "${pkgname}-${pkgver}"
+ # Desktop integration (e.g. enforce arch defaults)
+ sed -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \
+ -e "/cc(\['xdg-desktop-menu', 'forceupdate'\])/d" \
+ -e "/cc(\['xdg-mime', 'install', MIME\])/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
}
build() {