Skip to content

Commit

Permalink
urlview: 0.9-23.1 -> 1e, switch to urlview-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Oct 19, 2024
1 parent 594e843 commit 3c079fe
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 41 deletions.
1 change: 0 additions & 1 deletion urlview/.footprint
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
3 changes: 1 addition & 2 deletions urlview/.md5sum
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
17a7e74b70ed9a5d07d212071878beb9 urlview_0.9-23.1.debian.tar.xz
4f253c82b59136181b1f0bf218ef059d urlview_0.9.orig.tar.gz
f649516ca1e75df16718209670088704 urlview-1e.tar.gz
43 changes: 16 additions & 27 deletions urlview/Pkgfile
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 0 additions & 11 deletions urlview/urlview-0.9.patch

This file was deleted.

0 comments on commit 3c079fe

Please sign in to comment.