Update test.sh to use $2 (positional version argument) instead of the
$PKG_VERSION environment variable, and add a check that the alternative
binary /usr/libexec/less-gnu is present.
Changelog: https://www.greenwoodsoftware.com/less/news.692.html
Signed-off-by: Alexandru Ardelean <redacted>
include $(TOPDIR)/rules.mk
PKG_NAME:=less
-PKG_VERSION:=685
+PKG_VERSION:=692
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= @GNU/less \
https://www.greenwoodsoftware.com/less
-PKG_HASH:=2701041e767e697ee420ce0825641cedc8f20b51576abe99d92c1666d332e9dc
+PKG_HASH:=61300f603798ecf1d7786570789f0ff3f5a1acf075a6fb9f756837d166e37d14
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
#!/bin/sh
-less --version | grep -F "$PKG_VERSION"
+[ -x /usr/libexec/less-gnu ] || { echo "FAIL: /usr/libexec/less-gnu not installed"; exit 1; }