calibre: update to 2.56.0.

This commit is contained in:
Juan RP 2016-04-29 08:01:42 +02:00
parent f28493e723
commit 283fb362ae

View file

@ -1,33 +1,32 @@
# Template file for 'calibre' # Template file for 'calibre'
pkgname=calibre pkgname=calibre
version=2.55.0 version=2.56.0
revision=3 revision=1
build_style=python-module
hostmakedepends="python pkg-config python-dateutil python-lxml python-Pillow hostmakedepends="python pkg-config python-dateutil python-lxml python-Pillow
python-PyQt5-webkit python-apsw python-cssutils" python-PyQt5-webkit python-apsw python-cssutils python-CherryPy
python-html5lib"
makedepends="python-devel qt5-qmake python-PyQt5-devel glib-devel makedepends="python-devel qt5-qmake python-PyQt5-devel glib-devel
fontconfig-devel libmagick-devel libressl-devel icu-devel sqlite-devel fontconfig-devel libmagick-devel libressl-devel icu-devel sqlite-devel
libchmlib-devel libpodofo-devel qt5-devel libusb-devel libmtp-devel libchmlib-devel libpodofo-devel qt5-devel libusb-devel libmtp-devel
libinput-devel libxkbcommon-devel tslib-devel" libinput-devel libxkbcommon-devel tslib-devel"
depends="python-six python-dateutil python-cssutils python-CherryPy depends="python-six python-dateutil python-cssutils python-CherryPy
python-mechanize podofo libwmf ImageMagick chmlib python-lxml libusb python-mechanize podofo libwmf ImageMagick chmlib python-lxml libusb
python-Pillow shared-mime-info python-dnspython python-PyQt5 python-PyQt5-svg python-Pillow shared-mime-info python-dnspython python-PyQt5 python-PyQt5-svg
python-PyQt5-webkit python-psutil icu libmtp python-dbus python-netifaces python-PyQt5-webkit python-psutil libmtp python-dbus python-netifaces
python-cssselect python-apsw qt5-webkit qt5-svg python-chardet python-html5lib python-cssselect python-apsw qt5-webkit qt5-svg python-chardet python-html5lib
python-Pygments mtdev desktop-file-utils gtk-update-icon-cache optipng" python-Pygments mtdev desktop-file-utils gtk-update-icon-cache optipng"
short_desc="Ebook management application" short_desc="Ebook management application"
make_build_args="build gui"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>" maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3" license="GPL-3"
homepage="https://calibre-ebook.com" homepage="https://calibre-ebook.com"
nocross=yes
distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz" distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz"
checksum=a3a4f2914d491ab8c63725c11272d53bb4a91d282e6e5c6e0f245cb94b138188 checksum=52daf1d86400464d2f7681f4e5523e24bf3183bcaafa13176e511c4a8cd16577
nocross=yes
pycompile_version="2.7" pycompile_version="2.7"
pycompile_dirs="/usr/lib/calibre/" pycompile_dirs="/usr/lib/calibre/"
pre_configure() { do_configure() {
# Remove unneeded files and libs # Remove unneeded files and libs
rm -rf resources/${pkgname}-portable.* \ rm -rf resources/${pkgname}-portable.* \
src/cherrypy \ src/cherrypy \
@ -42,21 +41,11 @@ pre_configure() {
-e "s/^Name=calibre/Name=Calibre/g" \ -e "s/^Name=calibre/Name=Calibre/g" \
-i src/calibre/linux.py -i src/calibre/linux.py
} }
do_build() { do_build() {
python2 setup.py build ${make_build_args} python2 setup.py build gui
} }
pre_install() {
install -d "${pkgdir}/usr/share/zsh/site-functions" \
"${pkgdir}"/usr/share/{applications,desktop-directories,icons/hicolor}
install -Dm644 resources/calibre-mimetypes.xml \
"${pkgdir}/usr/share/mime/packages/calibre-mimetypes.xml"
}
do_install() { do_install() {
vinstall ${FILESDIR}/calibre.desktop 644 usr/share/applications vinstall ${FILESDIR}/calibre.desktop 644 usr/share/applications
python${pyver} setup.py \ python2 setup.py \
install --prefix=/usr --staging-root=${DESTDIR}/usr ${make_install_args} install --prefix=/usr --staging-root=${DESTDIR}/usr ${make_install_args}
} }