[arch-commits] Commit in sigil/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Thu Feb 24 12:18:02 UTC 2022


    Date: Thursday, February 24, 2022 @ 12:18:02
  Author: alerque
Revision: 1136410

upgpkg: sigil 1.9.0-1

Modified:
  sigil/trunk/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 45 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-24 12:17:08 UTC (rev 1136409)
+++ PKGBUILD	2022-02-24 12:18:02 UTC (rev 1136410)
@@ -5,15 +5,24 @@
 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
 
 pkgname=sigil
-pkgver=1.8.0
-pkgrel=2
-pkgdesc="multi-platform EPUB2/EPUB3 ebook editor"
+pkgver=1.9.0
+pkgrel=1
+pkgdesc='multi-platform EPUB2/EPUB3 ebook editor'
 arch=('x86_64')
-url="https://sigil-ebook.com/"
-license=('GPL3')
-depends=('hicolor-icon-theme' 'hunspell' 'mathjax2' 'minizip' 'python-css-parser'
-         'python-dulwich' 'python-lxml' 'qt5-svg' 'qt5-webengine')
-makedepends=('qt5-tools' 'cmake')
+url=https://sigil-ebook.com
+_url=https://github.com/Sigil-Ebook/Sigil
+license=(GPL3)
+depends=(hicolor-icon-theme
+         hunspell
+         mathjax2
+         minizip
+         python-css-parser
+         python-dulwich
+         python-lxml
+         qt5-svg
+         qt5-webengine)
+makedepends=(cmake
+             qt5-tools)
 optdepends=('hunspell-en_US: for English dictionary support'
             'hyphen-en: for English hyphenation support in plugins'
             'pageedit: external editor to replace BookView'
@@ -25,40 +34,40 @@
             'python-pyqt5: recommended for plugins'
             'python-pyqt5-webengine: 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=('33d84331f259ab8d92fc2c5fed6f05fd5f011695c48f83537423635a7afdd2ec'
+_archive="${pkgname^}-$pkgver"
+source=("$_url/archive/$pkgver/$_archive.tar.gz"
+        "$_url/releases/download/${pkgver}/$_archive.tar.gz.sig")
+sha256sums=('c44b0cf2472ef59c4d76178883a7795af39febf32496fb7af1e34f7a3977791f'
             'SKIP')
-b2sums=('78615652859d1f61bab18b1b248d342dc6892943a2310659859ab577981c4452fbaeb567758097427453c8dfe95e42b499616a423b5c11b42238f763ac0653c8'
+b2sums=('9d384fbc6479c062d939a15b77a216a658216d9fefcf7f37fce806a5406670156ca204b4390c46b6475a53d74cb3c4e2f0589ac3925beab2626659a2b224a06e'
         'SKIP')
 validpgpkeys=('B5A56206AB0FBC1A24EFAB8AA166D29A8FCDAC63') # Doug Massay <douglaslmassay at gmail.com>
 
+prepare() {
+	cd "$_archive"
+	mkdir -p build
+}
+
 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 \
-        -DINSTALL_HICOLOR_ICONS=1 \
-        -DDISABLE_UPDATE_CHECK=1 \
-        -DMATHJAX_DIR=/usr/share/mathjax2 \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_INSTALL_LIBDIR=lib \
-        -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-        -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
-        -DCMAKE_SKIP_RPATH=ON ..
-
-    make
+	cd "$_archive/build"
+	cmake -G "Unix Makefiles" \
+		-DUSE_SYSTEM_LIBS=1 \
+		-DSYSTEM_LIBS_REQUIRED=1 \
+		-DINSTALL_BUNDLED_DICTS=0 \
+		-DINSTALL_HICOLOR_ICONS=1 \
+		-DDISABLE_UPDATE_CHECK=1 \
+		-DMATHJAX_DIR=/usr/share/mathjax2 \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib \
+		-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
+		-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
+		-DCMAKE_SKIP_RPATH=ON ..
+	make
 }
 
 package() {
-    cd "${srcdir}"/Sigil-${pkgver}/build
-
-    make install DESTDIR="${pkgdir}"
-
-    # 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}
+	cd "$_archive/build"
+	make install DESTDIR="$pkgdir"
+	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