[arch-commits] Commit in bookworm/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:47:29 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:47:28
  Author: felixonmars
Revision: 658592

archrelease: copy trunk to community-staging-x86_64

Added:
  bookworm/repos/community-staging-x86_64/
  bookworm/repos/community-staging-x86_64/PKGBUILD
    (from rev 658591, bookworm/trunk/PKGBUILD)
  bookworm/repos/community-staging-x86_64/html2text.patch
    (from rev 658591, bookworm/trunk/html2text.patch)

-----------------+
 PKGBUILD        |   35 +++++++++++++++++++++++++++++++++++
 html2text.patch |   10 ++++++++++
 2 files changed, 45 insertions(+)

Copied: bookworm/repos/community-staging-x86_64/PKGBUILD (from rev 658591, bookworm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:47:28 UTC (rev 658592)
@@ -0,0 +1,35 @@
+# Contributor: ValHue <vhuelamo at gmail dot com>
+
+pkgname=bookworm
+pkgver=1.1.2
+pkgrel=2
+pkgdesc='A simple user centric eBook reader which displays multiple eBooks formats uniformly'
+url='https://babluboy.github.io/bookworm'
+arch=(x86_64)
+license=(GPL3)
+depends=(granite poppler-glib python unarchiver unzip webkit2gtk python-html2text)
+makedepends=(meson vala ninja)
+source=(bookworm-$pkgver.tar.gz::https://github.com/babluboy/bookworm/archive/$pkgver.tar.gz
+	    html2text.patch)
+sha256sums=('6d27e55697debfa08f7cc15805413b74c94c55111cdf2d333b306228eccad824'
+            'a90f0753d54aa8f3b72816494928f8e9b72bf26fccd477adfa495e9e2c93dc42')
+
+prepare() {
+  cd bookworm-$pkgver
+  patch -p1 < ../html2text.patch
+  mkdir build
+}
+
+build() {
+  cd bookworm-$pkgver
+  meson build --prefix=/usr
+  cd build
+  ninja
+}
+
+package() {
+  cd bookworm-$pkgver/build
+ 
+  DESTDIR="$pkgdir" ninja install
+  install -m644 -D ../COPYING "$pkgdir"/usr/share/licenses/bookworm/COPYING
+}

Copied: bookworm/repos/community-staging-x86_64/html2text.patch (from rev 658591, bookworm/trunk/html2text.patch)
===================================================================
--- community-staging-x86_64/html2text.patch	                        (rev 0)
+++ community-staging-x86_64/html2text.patch	2020-07-07 13:47:28 UTC (rev 658592)
@@ -0,0 +1,10 @@
+diff --git a/data/scripts/com.github.babluboy.bookworm.search.sh b/data/scripts/com.github.babluboy.bookworm.search.sh
+index 058f561..8dbd7ff 100644
+--- a/data/scripts/com.github.babluboy.bookworm.search.sh
++++ b/data/scripts/com.github.babluboy.bookworm.search.sh
+@@ -5,4 +5,4 @@
+ 
+ HTML_CONTENT_TO_BE_SEARCHED=$1
+ USER_SEARCH_TEXT=$2
+-html2text -utf8 "$HTML_CONTENT_TO_BE_SEARCHED"  | tr '\n' ' ' | grep -E -o -i  ".{0,50}$USER_SEARCH_TEXT.{0,50}"
++html2text "$HTML_CONTENT_TO_BE_SEARCHED"  | tr '\n' ' ' | grep -E -o -i  ".{0,50}$USER_SEARCH_TEXT.{0,50}"


More information about the arch-commits mailing list