void-packages/srcpkgs/calibre/template
2019-08-10 00:36:06 +02:00

43 lines
1.7 KiB
Bash

# Template file for 'calibre'
pkgname=calibre
version=3.46.0
revision=1
build_style=python2-module
pycompile_dirs="/usr/lib/calibre/"
make_build_args="gui"
hostmakedepends="pkg-config python-BeautifulSoup4 python-Pillow python-PyQt5-svg
python-PyQt5-webkit python-apsw python-css-parser python-dateutil
python-devel python-html5-parser python-msgpack python-regex qt5-qmake
xdg-utils"
makedepends="glib-devel libchmlib-devel libinput-devel libmagick-devel libmtp-devel
libpodofo-devel libwmf-devel libxkbcommon-devel python-PyQt5-devel
qt5-devel sqlite-devel tslib-devel qt5-webkit-devel"
depends="desktop-file-utils optipng poppler-utils python-BeautifulSoup4
python-CherryPy python-Markdown python-Pillow python-PyQt5-svg
python-PyQt5-webkit python-Pygments python-apsw python-css-parser
python-cssselect python-dateutil python-dbus python-dnspython
python-feedparser python-html5-parser python-mechanize python-msgpack
python-netifaces python-psutil python-regex"
short_desc="Ebook management application"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-3.0-only"
homepage="https://calibre-ebook.com"
distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz"
checksum=e947b9854f9db344ee07e5495feaad759c96936d89a128d3a3587c3503d09ab6
nocross=yes
do_configure() {
# Remove unneeded files and libs
rm -rf resources/${pkgname}-portable.* \
# Desktop integration (e.g. enforce arch defaults)
vsed -i src/calibre/linux.py \
-e "/import config_dir/,/os.rmdir(config_dir)/d" \
-e "s/'ctc-posml'/'text' not in mt and 'pdf' not in mt and 'xhtml'/" \
-e "s/^Name=calibre/Name=Calibre/g"
}
do_install() {
python2 setup.py \
install --prefix=/usr --staging-root=${DESTDIR}/usr
}