Commit a98344c1 authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] calibre: update to 3.43.0

parent 3fd6ef40
Pipeline #3642 skipped
pkgname=calibre pkgname=calibre
pkgver=3.42.0 pkgver=3.43.0
pkgrel=1 pkgrel=1
pkgdesc="Ebook management application" pkgdesc="Ebook management application"
arch=('x86_64') arch=('x86_64')
...@@ -16,7 +16,7 @@ optdepends=('ipython2: to use calibre-debug' ...@@ -16,7 +16,7 @@ optdepends=('ipython2: to use calibre-debug'
'kdialog: to use native dialog') 'kdialog: to use native dialog')
source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz" source=("https://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz"
"https://calibre-ebook.com/signatures/${pkgname}-${pkgver}.tar.xz.sig") "https://calibre-ebook.com/signatures/${pkgname}-${pkgver}.tar.xz.sig")
sha256sums=('b51194aecd452e6cea9681889cd1b2f868d379b07413b1dcb8842c363487ad7a' sha256sums=('b56c2545eb1e64d278eb219b9688c65f36c6f599fbc1a1e5baca9f19ec547041'
'SKIP') 'SKIP')
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid@kovidgoyal.net> validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid@kovidgoyal.net>
...@@ -24,9 +24,7 @@ prepare(){ ...@@ -24,9 +24,7 @@ prepare(){
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
# Desktop integration (e.g. enforce arch defaults) # Desktop integration (e.g. enforce arch defaults)
sed -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \ sed -e "/import config_dir/,/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/'ctc-posml'/'text' not in mt and 'pdf' not in mt and 'xhtml'/" \
-e "s/^Name=calibre/Name=Calibre/g" \ -e "s/^Name=calibre/Name=Calibre/g" \
-i src/calibre/linux.py -i src/calibre/linux.py
...@@ -60,14 +58,12 @@ build() { ...@@ -60,14 +58,12 @@ build() {
package() { package() {
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
install -d "${pkgdir}/usr/share/zsh/site-functions" \ # If this directory doesn't exist, zsh completion won't install.
"${pkgdir}"/usr/share/{applications,desktop-directories,icons/hicolor} install -d "${pkgdir}/usr/share/zsh/site-functions"
install -Dm644 resources/calibre-mimetypes.xml \ LANG='en_US.UTF-8' python2 setup.py install \
"${pkgdir}/usr/share/mime/packages/calibre-mimetypes.xml" --staging-root="${pkgdir}/usr" \
--prefix=/usr
XDG_DATA_DIRS="${pkgdir}/usr/share" 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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment