2016-02-04 14:38:07 +00:00
|
|
|
# Template file for 'calibre'
|
|
|
|
pkgname=calibre
|
2016-06-24 20:15:38 +00:00
|
|
|
version=2.60.0
|
2016-06-19 20:09:53 +00:00
|
|
|
revision=1
|
2016-04-29 06:13:14 +00:00
|
|
|
hostmakedepends="qt5-qmake python-devel pkg-config
|
|
|
|
python-dateutil python-lxml python-Pillow
|
2016-04-29 06:01:42 +00:00
|
|
|
python-PyQt5-webkit python-apsw python-cssutils python-CherryPy
|
|
|
|
python-html5lib"
|
2016-04-29 06:13:14 +00:00
|
|
|
makedepends="python-PyQt5-devel glib-devel libwmf-devel
|
2016-04-29 06:01:42 +00:00
|
|
|
fontconfig-devel libmagick-devel libressl-devel icu-devel sqlite-devel
|
|
|
|
libchmlib-devel libpodofo-devel qt5-devel libusb-devel libmtp-devel
|
|
|
|
libinput-devel libxkbcommon-devel tslib-devel"
|
2016-02-04 14:38:07 +00:00
|
|
|
depends="python-six python-dateutil python-cssutils python-CherryPy
|
2016-04-29 06:13:14 +00:00
|
|
|
python-Pillow python-dnspython python-PyQt5 python-PyQt5-svg
|
|
|
|
python-PyQt5-webkit python-psutil python-dbus python-netifaces
|
2016-04-29 06:01:42 +00:00
|
|
|
python-cssselect python-apsw qt5-webkit qt5-svg python-chardet python-html5lib
|
2016-04-29 06:13:14 +00:00
|
|
|
python-Pygments python-mechanize python-lxml
|
|
|
|
shared-mime-info desktop-file-utils gtk-update-icon-cache optipng"
|
2016-02-04 14:38:07 +00:00
|
|
|
short_desc="Ebook management application"
|
|
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="https://calibre-ebook.com"
|
|
|
|
distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz"
|
2016-06-24 20:15:38 +00:00
|
|
|
checksum=30cca18269fcf94400bdc428e7ac706b6265e550b9572668f998ebab5de5c83b
|
2016-02-04 14:38:07 +00:00
|
|
|
|
2016-04-29 06:01:42 +00:00
|
|
|
nocross=yes
|
2016-02-04 14:38:07 +00:00
|
|
|
pycompile_version="2.7"
|
|
|
|
pycompile_dirs="/usr/lib/calibre/"
|
|
|
|
|
2016-04-29 06:01:42 +00:00
|
|
|
do_configure() {
|
2016-02-04 14:38:07 +00:00
|
|
|
# Remove unneeded files and libs
|
|
|
|
rm -rf resources/${pkgname}-portable.* \
|
|
|
|
src/cherrypy \
|
|
|
|
src/html5lib \
|
|
|
|
src/chardet
|
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
do_build() {
|
2016-04-29 06:01:42 +00:00
|
|
|
python2 setup.py build gui
|
2016-02-04 14:38:07 +00:00
|
|
|
}
|
|
|
|
do_install() {
|
2016-04-29 05:40:31 +00:00
|
|
|
vinstall ${FILESDIR}/calibre.desktop 644 usr/share/applications
|
2016-04-30 06:37:14 +00:00
|
|
|
vinstall ${FILESDIR}/calibre-viewer.desktop 644 usr/share/applications
|
2016-04-29 06:01:42 +00:00
|
|
|
python2 setup.py \
|
2016-02-04 14:38:07 +00:00
|
|
|
install --prefix=/usr --staging-root=${DESTDIR}/usr ${make_install_args}
|
|
|
|
}
|