[arch-commits] Commit in sigil/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Nov 17 16:51:20 UTC 2018


    Date: Saturday, November 17, 2018 @ 16:51:20
  Author: foutrelis
Revision: 408578

archrelease: copy trunk to community-staging-x86_64

Added:
  sigil/repos/community-staging-x86_64/
  sigil/repos/community-staging-x86_64/PKGBUILD
    (from rev 408577, sigil/trunk/PKGBUILD)

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

Copied: sigil/repos/community-staging-x86_64/PKGBUILD (from rev 408577, sigil/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-17 16:51:20 UTC (rev 408578)
@@ -0,0 +1,64 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Alad Wenter <alad at mailbox.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
+
+pkgname=sigil
+pkgver=0.9.10
+pkgrel=3
+pkgdesc="WYSIWYG ebook editor"
+arch=('x86_64')
+url="https://sigil-ebook.com/"
+license=('GPL3')
+depends=('hicolor-icon-theme' 'hunspell' 'minizip' 'python-lxml' 'qt5-webkit')
+makedepends=('qt5-tools' 'qt5-svg' 'cmake')
+optdepends=('hunspell-en: 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-cssutils: recommended for plugins'
+            'python-pillow: recommended for plugins'
+            'python-regex: recommended for plugins'
+            'python-pyqt5: recommended for plugins'
+            'tk: recommended for plugins')
+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=('294954c4c2b3f1f9348d4f1bff18edebaba44afae901be3900154778b2f877ed'
+            'SKIP')
+validpgpkeys=('B5A56206AB0FBC1A24EFAB8AA166D29A8FCDAC63') # Doug Massay <douglaslmassay at gmail.com>
+
+build() {
+    cd "${srcdir}/Sigil-${pkgver}"
+
+    mkdir -p build
+    cd build
+
+    cmake -G "Unix Makefiles" \
+        -DUSE_SYSTEM_LIBS=1 \
+        -DSYSTEM_LIBS_REQUIRED=1 \
+        -DINSTALL_BUNDLED_DICTS=0 \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -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}
+}



More information about the arch-commits mailing list