From 3c079fedf2a0dfa4984683347436ba2ca247e07d Mon Sep 17 00:00:00 2001 From: Alexandr Savca Date: Sat, 19 Oct 2024 14:08:34 +0300 Subject: [PATCH] urlview: 0.9-23.1 -> 1e, switch to urlview-ng --- urlview/.footprint | 1 - urlview/.md5sum | 3 +-- urlview/Pkgfile | 43 +++++++++++++++------------------------ urlview/urlview-0.9.patch | 11 ---------- 4 files changed, 17 insertions(+), 41 deletions(-) delete mode 100644 urlview/urlview-0.9.patch diff --git a/urlview/.footprint b/urlview/.footprint index efade8b..7601525 100644 --- a/urlview/.footprint +++ b/urlview/.footprint @@ -4,7 +4,6 @@ drwxr-xr-x root/root etc/urlview/ -rwxr-xr-x root/root etc/urlview/url_handler.sh drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -lrwxrwxrwx root/root usr/bin/url_handler.sh -> /etc/urlview/url_handler.sh -rwxr-xr-x root/root usr/bin/urlview drwxr-xr-x root/root usr/share/ drwxr-xr-x root/root usr/share/man/ diff --git a/urlview/.md5sum b/urlview/.md5sum index 063364b..91bf3b1 100644 --- a/urlview/.md5sum +++ b/urlview/.md5sum @@ -1,2 +1 @@ -17a7e74b70ed9a5d07d212071878beb9 urlview_0.9-23.1.debian.tar.xz -4f253c82b59136181b1f0bf218ef059d urlview_0.9.orig.tar.gz +f649516ca1e75df16718209670088704 urlview-1e.tar.gz diff --git a/urlview/Pkgfile b/urlview/Pkgfile index 8932e67..8a05a7e 100644 --- a/urlview/Pkgfile +++ b/urlview/Pkgfile @@ -1,37 +1,26 @@ # Description: Curses URL parser for text files -# URL: http://packages.qa.debian.org/u/urlview.html -# Depends on: ncurses bash +# URL: https://git.sr.ht/~nabijaczleweli/urlview-ng +# Depends on: ncurses name=urlview -version=0.9 +version=1e release=1 -_patchlevel=23.1 -source="http://deb.debian.org/debian/pool/main/u/urlview/urlview_$version.orig.tar.gz - http://deb.debian.org/debian/pool/main/u/$name/urlview_$version-$_patchlevel.debian.tar.xz" +source=$name-$version.tar.gz::https://git.sr.ht/~nabijaczleweli/urlview-ng/archive/1e.tar.gz build() { - cd $name-$version.orig + export PREFIX=/usr + export DEFAULT_COMMAND=/etc/urlview/url_handler.sh + export SYSTEM_INITFILE=/etc/urlview/system.urlview + export VERSION=$version + export TZ=UTC0 + export SOURCE_DATE_EPOCH= - # Apply bundled patches via series. - while IFS= read -r _patch || [ -n "$_patch" ]; do - patch -p1 -i "$SRC/debian/patches/$_patch" - done < "$SRC/debian/patches/series" + # skip locales generation + sed -i 's/^install: all/install: urlview urlview.1 sample.urlview/' \ + $name-ng-$version/Makefile - aclocal - automake --foreign --ignore-deps --add-missing + make -C $name-ng-$version LOCALES= DESTDIR=$PKG install - ./configure --prefix=/usr - - make V=1 - - install -d $PKG/etc/$name/ $PKG/usr/share/man/man1/ - make prefix=$PKG/usr mandir=$PKG/usr/share/man install - - sed -i 's|/usr/X11R6/bin/netscape|/usr/bin/firefox|g' \ - url_handler.sh - install -m 755 -D url_handler.sh $PKG/etc/$name/url_handler.sh - install -m 644 -D sample.$name $PKG/etc/$name/system.$name - - install -d $PKG/usr/bin - ln -fs /etc/$name/url_handler.sh $PKG/usr/bin/url_handler.sh + # remove junk + rmdir $PKG/usr/share/locale } diff --git a/urlview/urlview-0.9.patch b/urlview/urlview-0.9.patch deleted file mode 100644 index eb178a4..0000000 --- a/urlview/urlview-0.9.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- urlview-0.9/Makefile.in 2000-07-04 12:16:37.000000000 +0200 -+++ urlview-0.9-new/Makefile.in 2006-04-18 15:11:29.000000000 +0200 -@@ -318,7 +318,7 @@ - - - install-data-local: -- $(INSTALL_DATA) urlview.man $(mandir)/man1/urlview.1 -+ $(INSTALL_DATA) urlview.man $(DESTDIR)$(mandir)/man1/urlview.1 - - # how to create a target for uninstall-data-local??? -