Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
9c15e323
Commit
9c15e323
authored
Mar 30, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play hplip-plugin: add support for new hplip-plugin download
parent
c2926653
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
hplip-plugin.sh
pack.d/hplip-plugin.sh
+8
-2
hplip-plugin.sh
play.d/hplip-plugin.sh
+10
-2
hplip-plugin.sh
repack.d/hplip-plugin.sh
+4
-1
No files found.
pack.d/hplip-plugin.sh
View file @
9c15e323
...
@@ -9,6 +9,14 @@ if ! echo "$TAR" | grep -q "hplip-.*-plugin" ; then
...
@@ -9,6 +9,14 @@ if ! echo "$TAR" | grep -q "hplip-.*-plugin" ; then
fatal
"No idea how to handle
$TAR
"
fatal
"No idea how to handle
$TAR
"
fi
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
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hplip-plugin
sh
$TAR
--target
.
--noexec
--nox11
||
exit
sh
$TAR
--target
.
--noexec
--nox11
||
exit
...
@@ -30,8 +38,6 @@ case "$(epm print info -a)" in
...
@@ -30,8 +38,6 @@ case "$(epm print info -a)" in
;;
;;
esac
esac
VERSION
=
"
$(
echo
"
$TAR
"
|
sed
-e
"s|.*hplip-
\(
.*
\)
-plugin.run.*|
\1
|"
)
"
#"
mkdir
-p
usr/share/hplip/data/firmware
mkdir
-p
usr/share/hplip/data/firmware
mkdir
-p
usr/share/hplip/fax/plugins
mkdir
-p
usr/share/hplip/fax/plugins
mkdir
-p
usr/share/hplip/prnt/plugins
mkdir
-p
usr/share/hplip/prnt/plugins
...
...
play.d/hplip-plugin.sh
View file @
9c15e323
...
@@ -15,7 +15,15 @@ if [ "$VERSION" = "*" ] ; then
...
@@ -15,7 +15,15 @@ if [ "$VERSION" = "*" ] ; then
VERSION
=
"
$(
epm print version
for
package hplip
)
"
VERSION
=
"
$(
epm print version
for
package hplip
)
"
fi
fi
# https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$VERSION-plugin.run
export
EGET_OPTIONS
=
"--user-agent"
PKGURL
=
"https://developers.hp.com/sites/default/files/hplip-
$VERSION
-plugin.run"
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
install_pack_pkgurl
repack.d/hplip-plugin.sh
View file @
9c15e323
...
@@ -9,6 +9,9 @@ SPEC="$2"
...
@@ -9,6 +9,9 @@ SPEC="$2"
subst
"s|^License: unknown
$|
License: Proprietary|"
$SPEC
subst
"s|^License: unknown
$|
License: Proprietary|"
$SPEC
subst
"s|^Summary:.*|Summary: Binary plugin for HPs hplip printer driver library|"
$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
add_libs_requires
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment