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
696e70bb
Commit
696e70bb
authored
May 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add epsonscan2
parent
143512ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
epsonscan2.sh
pack.d/epsonscan2.sh
+19
-0
epsonscan2.sh
play.d/epsonscan2.sh
+37
-0
No files found.
pack.d/epsonscan2.sh
0 → 100755
View file @
696e70bb
#!/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
pkgtype
=
"
$(
epm print info
-p
)
"
core
=
"core/epsonscan2*.*"
plugins
=
"plugins/epsonscan2-non-free-plugin*.*"
return_tar
$core
$plugins
play.d/epsonscan2.sh
0 → 100755
View file @
696e70bb
#!/bin/sh
PKGNAME
=
epsonscan2
SUPPORTEDARCHES
=
"x86_64"
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
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
"
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