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
8269bb0b
Commit
8269bb0b
authored
Mar 31, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play epsonscan2: rewrite, split epsonscan2-non-free-plugin separately
parent
39960d4a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
23 deletions
+55
-23
epsonscan2-non-free-plugin.sh
pack.d/epsonscan2-non-free-plugin.sh
+19
-0
epsonscan2.sh
pack.d/epsonscan2.sh
+3
-3
epsonscan2-non-free-plugin.sh
play.d/epsonscan2-non-free-plugin.sh
+30
-0
epsonscan2.sh
play.d/epsonscan2.sh
+0
-9
epsonscan2.sh
repack.d/epsonscan2.sh
+3
-11
No files found.
pack.d/epsonscan2-non-free-plugin.sh
0 → 100755
View file @
8269bb0b
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
if
!
echo
"
$TAR
"
|
grep
-q
"epsonscan2-bundle-.*.tar.gz"
;
then
fatal
"No idea how to handle
$TAR
"
fi
erc unpack
$TAR
&&
cd
epsonscan2-bundle-
*
||
fatal
# TODO:
# cp $base/DefaultSettings.SF2 $HOME/.epsonscan2
plugins
=
"plugins/epsonscan2-non-free-plugin*.*"
return_tar
$plugins
pack.d/epsonscan2.sh
View file @
8269bb0b
...
...
@@ -11,9 +11,9 @@ fi
erc unpack
$TAR
&&
cd
epsonscan2-bundle-
*
||
fatal
pkgtype
=
"
$(
epm print info
-p
)
"
# TODO:
# cp $base/DefaultSettings.SF2 $HOME/.epsonscan2
core
=
"core/epsonscan2*.*"
plugins
=
"plugins/epsonscan2-non-free-plugin*.*"
return_tar
$core
$plugins
return_tar
$core
play.d/epsonscan2-non-free-plugin.sh
0 → 100755
View file @
8269bb0b
#!/bin/sh
PKGNAME
=
epsonscan2-non-free-plugin
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Epson Scan 2 non-free-plugin - Linux Scanner Driver from the official site"
URL
=
"https://support.epson.net/linux/en/epsonscan2.php"
.
$(
dirname
$0
)
/common.sh
warn_version_is_not_supported
pkgtype
=
$(
epm print info
-p
)
arch
=
"
$(
epm print info
-a
)
"
case
"
$pkgtype
-
$arch
"
in
rpm-x86_64
)
PKGURL
=
"https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=JA&CN2=US&CTI=171&PRN=Linux%20rpm%2064bit%20package&OSC=LX&DL"
;;
*
-x86_64
)
PKGURL
=
"https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=JA&CN2=US&CTI=171&PRN=Linux%20deb%2064bit%20package&OSC=LX&DL"
;;
*
)
fatal
"
$arch
arch is not supported"
;;
esac
repack
=
''
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
epm pack
$repack
--install
$PKGNAME
"
$PKGURL
"
play.d/epsonscan2.sh
View file @
8269bb0b
...
...
@@ -6,15 +6,6 @@ VERSION="$2"
DESCRIPTION
=
"Epson Scan 2 - Linux Scanner Driver from the official site"
URL
=
"https://support.epson.net/linux/en/epsonscan2.php"
# TODO: remove repo too
case
"
$1
"
in
"--remove"
)
epm remove
$(
epm qp
$PKGNAME
-
)
exit
;;
esac
.
$(
dirname
$0
)
/common.sh
warn_version_is_not_supported
...
...
repack.d/epsonscan2.sh
View file @
8269bb0b
...
...
@@ -3,18 +3,10 @@
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
UNIREQUIRES
=
"udev libusb-1.0.so.0"
.
$(
dirname
$0
)
/common.sh
add_qt5_deps
exit
add_requires udev
if
epm assure patchelf
;
then
for
i
in
usr/lib64/epsonscan2/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/'
$i
||
continue
done
fi
add_libs_requires
set_autoreq
'yes'
fix_desktop_file /usr/bin/epsonscan2
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