Commit 9c15e323 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play hplip-plugin: add support for new hplip-plugin download

parent c2926653
......@@ -9,6 +9,14 @@ if ! echo "$TAR" | grep -q "hplip-.*-plugin" ; then
fatal "No idea how to handle $TAR"
fi
VERSION="$(echo "$TAR" | sed -e "s|.*hplip-\(.*\)-plugin.*|\1|")" #"
if echo "$TAR" | grep -q "plugin_run\.zip$" ; then
erc $TAR || fatal
#TAR="hplip-$VERSION-plugin.run"
TAR="$(echo "hplip*.run")"
fi
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hplip-plugin
sh $TAR --target . --noexec --nox11 || exit
......@@ -30,8 +38,6 @@ case "$(epm print info -a)" in
;;
esac
VERSION="$(echo "$TAR" | sed -e "s|.*hplip-\(.*\)-plugin.run.*|\1|")" #"
mkdir -p usr/share/hplip/data/firmware
mkdir -p usr/share/hplip/fax/plugins
mkdir -p usr/share/hplip/prnt/plugins
......
......@@ -15,7 +15,15 @@ if [ "$VERSION" = "*" ] ; then
VERSION="$(epm print version for package hplip)"
fi
# https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$VERSION-plugin.run
PKGURL="https://developers.hp.com/sites/default/files/hplip-$VERSION-plugin.run"
export EGET_OPTIONS="--user-agent"
if [ "$(epm print compare "$VERSION" 3.25.2)" != "-1" ] ; then
#PKGURL="https://developers.hp.com/sites/default/files/hplip-$VERSION-plugin.run.zip"
#PKGURL="https://developers.hp.com/system/files/2025-03/hplip-$VERSION-plugin_run.zip"
PKGURL="$(eget --list https://developers.hp.com/hp-linux-imaging-and-printing/plugins hplip-$VERSION-plugin_run.zip)"
else
# https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$VERSION-plugin.run
PKGURL="https://developers.hp.com/sites/default/files/hplip-$VERSION-plugin.run"
fi
install_pack_pkgurl
......@@ -9,6 +9,9 @@ SPEC="$2"
subst "s|^License: unknown$|License: Proprietary|" $SPEC
subst "s|^Summary:.*|Summary: Binary plugin for HPs hplip printer driver library|" $SPEC
add_requires hplip
# While hplip-plugin requires the version of hplip to match exactly,
# specifying such a requirement breaks the ability to upgrade hplip.
VERSION=$(grep "^Version:" $SPEC | sed -e "s|Version: ||")
add_requires "hplip >= $VERSION"
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment