# Depends on: xdg-utils libmtp python python-six python-dateutil python-cssutils python-cherrypy python-lxml python-pillow python-netifaces python-psutil python-pygments podofo libwmf chmlib python-lxml shared-mime-info qt5-webkit python-qt5

description="Ebook management application"
url="https://calibre-ebook.com/"
packager="tnut at nutyx dot org"
name=calibre
version=2.77.0
release=1
source=(https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz)
build() {
cd calibre-$version
python2 setup.py build
python2 setup.py gui
install -d $PKG/usr/share/zsh/site-functions \
$PKG/usr/share/{applications,desktop-directories,icons/hicolor}
XDG_DATA_DIRS=$PKG/usr/share LANG='en_US.UTF-8' \
python2 setup.py install --staging-root=$PKG/usr --prefix=/usr
}
