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
Vladislav
eepm
Commits
8189fb8e
Commit
8189fb8e
authored
Oct 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prescriptions: add --remove support
parent
5bdce758
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
6 deletions
+61
-6
epm-prescription
bin/epm-prescription
+2
-2
README.md
prescription.d/README.md
+3
-0
chrome.sh
prescription.d/chrome.sh
+5
-0
chromium-gost.sh
prescription.d/chromium-gost.sh
+8
-1
edge.sh
prescription.d/edge.sh
+7
-0
skype.sh
prescription.d/skype.sh
+7
-0
teams.sh
prescription.d/teams.sh
+7
-0
teamviewer.sh
prescription.d/teamviewer.sh
+7
-2
vivaldi.sh
prescription.d/vivaldi.sh
+8
-1
zoom.sh
prescription.d/zoom.sh
+7
-0
No files found.
bin/epm-prescription
View file @
8189fb8e
...
...
@@ -25,7 +25,7 @@ local psdir="$CONFIGDIR/prescription.d"
if
[
-z
"
$pkg_filenames
"
]
;
then
echo
"Run with a name of a prescription to run:"
for
i
in
$psdir
/
*
.sh
;
do
printf
" %-20s - %s
\n
"
"
$(
basename
$i
.sh
)
"
"
$(
$i
--description
)
"
printf
" %-20s - %s
\n
"
"
$(
basename
$i
.sh
)
"
"
$(
$i
--description
2>/dev/null
)
"
done
return
fi
...
...
@@ -42,7 +42,7 @@ __set_EGET
export
PATH
=
$PROGDIR
:
$PATH
info
"Running
$(
$script
--description
)
..."
info
"Running
$(
$script
--description
2>/dev/null
)
..."
docmd
$script
--run
}
prescription.d/README.md
View file @
8189fb8e
...
...
@@ -8,3 +8,6 @@ Allowed command:
TODO:
*
inject some functions
TODO:
*
save packages for remove
prescription.d/chrome.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,11 @@ fatal()
exit
1
}
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove google-chrome-stable
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install The popular and trusted web browser by Google (Stable Channel) from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
...
...
prescription.d/chromium-gost.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,13 @@ fatal()
exit
1
}
PKGNAME
=
chromium-gost
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Chromium with GOST support from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
...
...
@@ -16,6 +23,6 @@ fatal()
arch
=
amd64
pkgtype
=
deb
PKG
=
$(
$EGET
--list
--latest
https://github.com/deemru/chromium-gost/releases
"
chromium-gost
-*linux-
$arch
.
$pkgtype
"
)
||
fatal
"Can't get package URL"
PKG
=
$(
$EGET
--list
--latest
https://github.com/deemru/chromium-gost/releases
"
$PKGNAME
-*linux-
$arch
.
$pkgtype
"
)
||
fatal
"Can't get package URL"
epm
install
"
$PKG
"
prescription.d/edge.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,13 @@ fatal()
exit
1
}
PKGNAME
=
microsoft-edge-dev
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Microsoft Edge browser (dev) from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
...
...
prescription.d/skype.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,13 @@ fatal()
exit
1
}
PKGNAME
=
skypeforlinux
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Skype for Linux - Stable/Release Version from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
...
...
prescription.d/teams.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,13 @@ fatal()
exit
1
}
PKGNAME
=
teams
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Microsoft Teams for Linux from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
...
...
prescription.d/teamviewer.sh
View file @
8189fb8e
...
...
@@ -7,8 +7,6 @@ fatal()
exit
1
}
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Teamviewer from the official site"
&&
exit
PKGNAME
=
"teamviewer"
arch
=
"
$(
$DISTRVENDOR
-a
)
"
...
...
@@ -23,6 +21,13 @@ case "$arch" in
;;
esac
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Teamviewer from the official site"
&&
exit
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=teamviewer
# epm uses eget to download * names
...
...
prescription.d/vivaldi.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,13 @@ fatal()
exit
1
}
PKGNAME
=
vivaldi-stable
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Vivaldi browser from the official site"
&&
exit
arch
=
"
$(
$DISTRVENDOR
--debian-arch
)
"
...
...
@@ -26,4 +33,4 @@ esac
# https://repo.vivaldi.com/archive/rpm/x86_64/
# epm uses eget to download * names
epm
--noscripts
install
"https://repo.vivaldi.com/archive/deb/pool/main/
$(
epm print constructname
vivaldi-stable
"*"
$arch
deb
)
"
epm
--noscripts
install
"https://repo.vivaldi.com/archive/deb/pool/main/
$(
epm print constructname
$PKGNAME
"*"
$arch
deb
)
"
prescription.d/zoom.sh
View file @
8189fb8e
...
...
@@ -7,6 +7,13 @@ fatal()
exit
1
}
PKGNAME
=
zoom
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Zoom client from the official site"
&&
exit
arch
=
$(
$DISTRVENDOR
--distro-arch
)
...
...
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