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

Anatol Pomozov anatolik at archlinux.org
Fri Mar 26 18:37:45 UTC 2021


    Date: Friday, March 26, 2021 @ 18:37:45
  Author: anatolik
Revision: 904660

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: bookworm/repos/community-staging-x86_64/PKGBUILD (from rev 904659, bookworm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-03-26 18:37:45 UTC (rev 904660)
@@ -0,0 +1,35 @@
+# Contributor: ValHue <vhuelamo at gmail dot com>
+
+pkgname=bookworm
+pkgver=1.1.2
+pkgrel=3
+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 904659, bookworm/trunk/html2text.patch)
===================================================================
--- community-staging-x86_64/html2text.patch	                        (rev 0)
+++ community-staging-x86_64/html2text.patch	2021-03-26 18:37:45 UTC (rev 904660)
@@ -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