[arch-commits] Commit in lesspipe/trunk (PKGBUILD html2text.patch)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Fri Nov 26 12:47:14 UTC 2021


    Date: Friday, November 26, 2021 @ 12:47:13
  Author: kgizdov
Revision: 1054850

upgpkg: lesspipe 1.91-3: point patch to correct file

Modified:
  lesspipe/trunk/PKGBUILD
  lesspipe/trunk/html2text.patch

-----------------+
 PKGBUILD        |   10 ++++++----
 html2text.patch |   12 ++++++------
 2 files changed, 12 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-26 10:58:51 UTC (rev 1054849)
+++ PKGBUILD	2021-11-26 12:47:13 UTC (rev 1054850)
@@ -5,7 +5,7 @@
 
 pkgname=lesspipe
 pkgver=1.91
-pkgrel=2
+pkgrel=3
 pkgdesc='an input filter for the pager less'
 depends=('less' 'perl')
 arch=('any')
@@ -29,13 +29,15 @@
 	    'mediainfo: support for mp4 file'
 	    'imagemagick: support for some image file')
 url="https://www-zeuthen.desy.de/~friebel/unix/lesspipe.html"
-source=("https://github.com/wofr06/lesspipe/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/wofr06/lesspipe/archive/refs/tags/${pkgver}.tar.gz"
         lesspipe.sh
         'html2text.patch')
 sha256sums=('6192e7e451c5db26841c6dc3cbcc23c1ef396c1cc4588288effa699dbc665cdb'
             '522a4893b640ed95e39fd4ca83a5d5ec79207542fec03710fa5e73fe201ed057'
-            '78e0e2d2381d4047df09ff296330f3c903de06ef3da3d9492fc71a33487d0581')
-prepare () {
+            'a095ccc303fd4da8cdc2d586f478f48c66f8a86743685d94da332f22c1eadfe6')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
   patch -Np1 -i "${srcdir}/html2text.patch" -d "${srcdir}/${pkgname}-${pkgver}"
 }
 

Modified: html2text.patch
===================================================================
--- html2text.patch	2021-11-26 10:58:51 UTC (rev 1054849)
+++ html2text.patch	2021-11-26 12:47:13 UTC (rev 1054850)
@@ -1,9 +1,9 @@
-diff --color -aur lesspipe-1.91-old/lesspipe.sh lesspipe-1.91-new/lesspipe.sh
---- lesspipe-1.91-old/lesspipe.sh	2021-11-10 20:11:39.000000000 +0200
-+++ lesspipe-1.91-new/lesspipe.sh	2021-11-21 04:34:21.400743376 +0200
-@@ -531,9 +531,9 @@
-     msg "No suitable tool for HTML parsing found, install one of html2text, elinks, links, lynx or w3m"
+diff --color -aur lesspipe-1.91-old/lesspipe.sh.in lesspipe-1.91-new/lesspipe.sh.in
+--- lesspipe-1.91-old/lesspipe.sh.in	2021-11-10 20:11:39.000000000 +0200
++++ lesspipe-1.91-new/lesspipe.sh.in	2021-11-26 14:43:55.134403225 +0200
+@@ -600,9 +600,9 @@
      return
+ #ifdef html2text
    elif cmd_exist html2text; then
 -    if [[ "$1" = - ]]; then html2text -utf8 2>/dev/null ||
 +    if [[ "$1" = - ]]; then html2text - utf8 2>/dev/null ||
@@ -11,5 +11,5 @@
 -    else html2text -utf8 "$1" 2>/dev/null ||
 +    else html2text "$1" utf8 2>/dev/null ||
        html2text -from_encoding utf-8 "$1"; fi
+ #ifdef lynx
    elif cmd_exist lynx; then
-     if [[ "$1" = - ]]; then set - -stdin; fi



More information about the arch-commits mailing list