diff options
author | Freemor <freemor@freemor.ca> | 2019-09-05 22:11:49 -0300 |
---|---|---|
committer | Freemor <freemor@freemor.ca> | 2019-09-05 22:11:49 -0300 |
commit | ffdc392b683fa9367005bc6c6ab82a1b276837f7 (patch) | |
tree | 8789bd62f0270e2ce6849c036db09e1bc14f5cc7 /libre/sigil | |
parent | d9499df691502f3af0b9aa0b9a828684f018302b (diff) | |
download | abslibre-ffdc392b683fa9367005bc6c6ab82a1b276837f7.tar.gz abslibre-ffdc392b683fa9367005bc6c6ab82a1b276837f7.tar.bz2 abslibre-ffdc392b683fa9367005bc6c6ab82a1b276837f7.zip |
get [libre/sigil] in place and ready to replace [community/sigil] which is qt5-webengine broken.
Diffstat (limited to 'libre/sigil')
-rw-r--r-- | libre/sigil/PKGBUILD | 79 | ||||
-rw-r--r-- | libre/sigil/sigil.install | 10 |
2 files changed, 89 insertions, 0 deletions
diff --git a/libre/sigil/PKGBUILD b/libre/sigil/PKGBUILD new file mode 100644 index 000000000..18e514789 --- /dev/null +++ b/libre/sigil/PKGBUILD @@ -0,0 +1,79 @@ +# Maintainer: Eli Schwartz <eschwartz@archlinux.org> +# Maintainer (Arch): Eli Schwartz <eschwartz@archlinux.org> +# Maintainer (Arch): Alad Wenter <alad@mailbox.org> +# Contributor: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com> + +# parabola changes and rationale: +# - freeze at version immediately before port to webengine, +# see https://labs.parabola.nu/issues/2399 + +pkgname=sigil +pkgver=0.9.14 +pkgrel=2 +pkgrel+=par1 +pkgdesc="WYSIWYG ebook editor. Frozen to avoid qt5-webengine dependency." +arch=('x86_64' 'i686' 'armv7h') +url="https://sigil-ebook.com/" +license=('GPL3') +depends=('hicolor-icon-theme' 'hunspell' 'mathjax' 'minizip' 'python-css-parser' + 'python-lxml' 'qt5-webkit') +makedepends=('qt5-tools' 'qt5-svg' 'qt5-xmlpatterns' 'cmake') +optdepends=('hunspell-en_US: for English dictionary support' + 'hyphen-en: for English hyphenation support in plugins' + 'python-html5lib: recommended for plugins' + 'python-chardet: recommended for plugins' + 'python-cssselect: recommended for plugins' + 'python-pillow: recommended for plugins' + 'python-regex: recommended for plugins' + 'python-pyqt5: recommended for plugins' + 'tk: recommended for plugins') +install=${pkgname}.install +source=("Sigil-${pkgver}.tar.gz::https://github.com/Sigil-Ebook/Sigil/archive/${pkgver}.tar.gz" + "https://github.com/Sigil-Ebook/Sigil/releases/download/${pkgver}/Sigil-${pkgver}.tar.gz.sig") +sha256sums=('6da5482a6158896c7cde50d7787b7d2c681ab3afea032298ccf05f50ec803ac4' + 'SKIP') +validpgpkeys=('B5A56206AB0FBC1A24EFAB8AA166D29A8FCDAC63') # Doug Massay <douglaslmassay@gmail.com> + +prepare() { + cd "${srcdir}"/Sigil-${pkgver} + + # devendor css_parser as it's a direct copy of the external package; + # upstream maintains both and plans to switch soon + rm -r src/Resource_Files/plugin_launchers/python/css_parser/ +} + +build() { + mkdir -p "${srcdir}"/Sigil-${pkgver}/build + cd "${srcdir}"/Sigil-${pkgver}/build + + cmake -G "Unix Makefiles" \ + -DUSE_SYSTEM_LIBS=1 \ + -DSYSTEM_LIBS_REQUIRED=1 \ + -DINSTALL_BUNDLED_DICTS=0 \ + -DMATHJAX_DIR=/usr/share/mathjax \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ + -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON .. + + make +} + +package() { + cd "${srcdir}"/Sigil-${pkgver}/build + make install DESTDIR="${pkgdir}" + + for _pic in 16 32 48 128 256; do + install -D -m 0644 ../src/Resource_Files/icon/app_icon_${_pic}.png \ + "${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png + done + install -Dm644 ../src/Resource_Files/icon/app_icon_128.png \ + "$pkgdir/usr/share/pixmaps/$pkgname.png" + + # Compile python bytecode + python -m compileall "${pkgdir}"/usr/share/sigil/{plugin_launchers/python/,python3lib} + python -O -m compileall "${pkgdir}"/usr/share/sigil/{plugin_launchers/python/,python3lib} +} diff --git a/libre/sigil/sigil.install b/libre/sigil/sigil.install new file mode 100644 index 000000000..5a017b7c8 --- /dev/null +++ b/libre/sigil/sigil.install @@ -0,0 +1,10 @@ +post_upgrade() { + if (( $(vercmp 0.9.13 "$2") > 0 )); then + cat << __EOF__ +Sigil will very possibly not work at first due to bugs in the 0.9.11 - 0.9.12 preferences code. +Please see the following resources for migration instructions: + https://www.mobileread.com/forums/showthread.php?t=315748 + https://github.com/Sigil-Ebook/Sigil/wiki#if-youre-here-because +__EOF__ + fi +} |