Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : calibre | name : calibre | ||||
| version : 4.1.0 | version : 4.1.0 | ||||
| release : 114 | release : 115 | ||||
| source : | source : | ||||
| - https://download.calibre-ebook.com/4.1.0/calibre-4.1.0.tar.xz : 363f89b4c26ba8f8bba1eb40da09df85b8b3fedf9a0256285a0abae1ff65987c | - https://download.calibre-ebook.com/4.1.0/calibre-4.1.0.tar.xz : 363f89b4c26ba8f8bba1eb40da09df85b8b3fedf9a0256285a0abae1ff65987c | ||||
| license : GPL-3.0-only | license : GPL-3.0-only | ||||
| component : office.viewers | component : office.viewers | ||||
| summary : Calibre eBook Library Manager | summary : Calibre eBook Library Manager | ||||
| description: | | description: | | ||||
| calibre is a free and open source e-book library management application developed by users of e-books for users of e-books. | calibre is a free and open source e-book library management application developed by users of e-books for users of e-books. | ||||
| builddeps : | builddeps : | ||||
| - pkgconfig(Qt5Core) | |||||
| - pkgconfig(dbus-python) | - pkgconfig(dbus-python) | ||||
| - pkgconfig(hunspell) | - pkgconfig(hunspell) | ||||
| - pkgconfig(icu-i18n) | - pkgconfig(icu-i18n) | ||||
| - pkgconfig(libinput) | - pkgconfig(libinput) | ||||
| - pkgconfig(libmtp) | - pkgconfig(libmtp) | ||||
| - pkgconfig(mtdev) | - pkgconfig(mtdev) | ||||
| - pkgconfig(poppler) | - pkgconfig(poppler) | ||||
| - pkgconfig(Qt5Core) | - pkgconfig(python3) | ||||
| - pkgconfig(shared-mime-info) | - pkgconfig(shared-mime-info) | ||||
| - pkgconfig(sqlite3) | - pkgconfig(sqlite3) | ||||
| - pkgconfig(xkbcommon) | - pkgconfig(xkbcommon) | ||||
| - chmlib-devel | - chmlib-devel | ||||
| - dnspython | - dnspython | ||||
| - liberation-fonts-ttf | - liberation-fonts-ttf | ||||
| - optipng | - optipng | ||||
| - podofo-devel | - podofo-devel | ||||
| - pygments | - pygments | ||||
| - python3-qt5 | |||||
| - python3-sip-devel | |||||
| - python-apsw | - python-apsw | ||||
| - python-beautifulsoup4 | - python-beautifulsoup4 | ||||
| - python-css-parser | - python-css-parser | ||||
| - python-dateutil | - python-dateutil | ||||
| - python-html5-parser | - python-html5-parser | ||||
| - python-mechanize | - python-mechanize | ||||
| - python-msgpack | - python-msgpack | ||||
| - python-netifaces | - python-netifaces | ||||
| - python-pillow | - python-pillow | ||||
| - python-psutil | - python-psutil | ||||
| - python-qt5 | |||||
| - python-qtwebengine | |||||
| - python-regex | - python-regex | ||||
| - python-sip-devel | - python-qtwebengine | ||||
| - xdg-utils | - xdg-utils | ||||
| rundeps : | rundeps : | ||||
| - dnspython | - dnspython | ||||
| - liberation-fonts-ttf | - liberation-fonts-ttf | ||||
| - optipng | - optipng | ||||
| - poppler-utils | - poppler-utils | ||||
| - pygments | - pygments | ||||
| - python3-dbus | |||||
| - python3-qt5 | |||||
| - python-apsw | - python-apsw | ||||
| - python-backports.functools_lru_cache | |||||
| - python-beautifulsoup4 | - python-beautifulsoup4 | ||||
| - python-feedparser | |||||
| - python-css-parser | - python-css-parser | ||||
| - python-dateutil | - python-dateutil | ||||
| - python-dbus | - python-feedparser | ||||
| - python-html2text | - python-html2text | ||||
| - python-html5-parser | - python-html5-parser | ||||
| - python-markdown | - python-markdown | ||||
| - python-mechanize | - python-mechanize | ||||
| - python-msgpack | - python-msgpack | ||||
| - python-netifaces | - python-netifaces | ||||
| - python-pillow | - python-pillow | ||||
| - python-psutil | - python-psutil | ||||
| - python-qt5 | |||||
| - python-qtwebengine | |||||
| - python-regex | - python-regex | ||||
| - python-qtwebengine | |||||
| environment: | | |||||
| export CALIBRE_PY3_PORT=1 | |||||
| setup : | | setup : | | ||||
| %patch -p1 < $pkgfiles/0001-Remove-mime-setup-conflicts-with-shared-mime-data.patch | %patch -p1 < $pkgfiles/0001-Remove-mime-setup-conflicts-with-shared-mime-data.patch | ||||
| %patch -p1 < $pkgfiles/calibre-no-update.patch | %patch -p1 < $pkgfiles/calibre-no-update.patch | ||||
| %patch -p1 < $pkgfiles/use-system-theme.patch | %patch -p1 < $pkgfiles/use-system-theme.patch | ||||
| build : | | build : | | ||||
| python setup.py build | python3 setup.py build | ||||
| python setup.py gui | python3 setup.py gui | ||||
| install : | | install : | | ||||
| #Set XDG directories in fakeroot, add read privileges to /usr/share | #Set XDG directories in fakeroot, add read privileges to /usr/share | ||||
| export XDG_DATA_HOME=$installdir/usr/share | export XDG_DATA_HOME=$installdir/usr/share | ||||
| export XDG_UTILS_INSTALL_MODE="user" | export XDG_UTILS_INSTALL_MODE="user" | ||||
| python setup.py install --root="%installroot%" --staging-root=%installroot%/usr --prefix=/usr | python3 setup.py install --root="%installroot%" --staging-root=%installroot%/usr --prefix=/usr | ||||
| %python_compile | %python3_compile | ||||
| # Restore read permissions for icons | # Restore read permissions for icons | ||||
| chmod -R +r $installdir/usr/share/icons | chmod -R +r $installdir/usr/share/icons | ||||
| # Remove MimeTypes from .desktop as it creates unwanted associations | # Remove MimeTypes from .desktop as it creates unwanted associations | ||||
| sed -e "/MimeType/d" -i $installdir/usr/share/applications/calibre*.desktop | sed -e "/MimeType/d" -i $installdir/usr/share/applications/calibre*.desktop | ||||
| rm -rf $installdir/usr/share/applications/calibre-{ebook-*,lrfviewer}.desktop | rm -rf $installdir/usr/share/applications/calibre-{ebook-*,lrfviewer}.desktop | ||||
| chmod -R 00755 $installdir/usr/share/applications/calibre-gui.desktop | chmod -R 00755 $installdir/usr/share/applications/calibre-gui.desktop | ||||
| install -Dm00644 $workdir/resources/calibre-mimetypes.xml $installdir/usr/share/mime/packages/calibre-mimetypes.xml | install -Dm00644 $workdir/resources/calibre-mimetypes.xml $installdir/usr/share/mime/packages/calibre-mimetypes.xml | ||||
| # Use system fonts | # Use system fonts | ||||
| rm $installdir/usr/share/calibre/fonts/liberation/*.ttf | rm $installdir/usr/share/calibre/fonts/liberation/*.ttf | ||||
| ln -s /usr/share/fonts/Liberation/*.ttf $installdir/usr/share/calibre/fonts/liberation/ | ln -s /usr/share/fonts/Liberation/*.ttf $installdir/usr/share/calibre/fonts/liberation/ | ||||
| # Empty folder, also calibre shouldn't own this | # Empty folder, also calibre shouldn't own this | ||||
| rmdir $installdir/usr/share/desktop-directories | rmdir $installdir/usr/share/desktop-directories | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.