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
0cc314e4
Commit
0cc314e4
authored
Oct 27, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add play for discord
parent
b4a1237d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
discord.sh
prescription.d/discord.sh
+26
-0
discord.sh
repack.d/discord.sh
+21
-0
No files found.
prescription.d/discord.sh
0 → 100755
View file @
0cc314e4
#!/bin/sh -x
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
discord
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Discord from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
# FIXME: improve eget to support ? not ask mask (detect by =?)
#PKG=/tmp/discord.deb
#$EGET -O $PKG "https://discord.com/api/download?platform=linux&format=deb"
PKG
=
"https://dl.discordapp.net/apps/linux/0.0.12/discord-0.0.12.deb"
epm
install
"
$PKG
"
repack.d/discord.sh
0 → 100755
View file @
0cc314e4
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
discord
LIBDIR
=
/opt
mkdir
-p
$BUILDROOT$LIBDIR
/
mv
$BUILDROOT
/usr/share/
$PRODUCT
/
$BUILDROOT$LIBDIR
/
$PRODUCT
/
subst
"s|/usr/share/
$PRODUCT
|
$LIBDIR
/
$PRODUCT
|g"
$SPEC
subst
'1iAutoProv:no'
$SPEC
# usual command skype
mkdir
-p
$BUILDROOT
/usr/bin/
ln
-sf
$LIBDIR
/
$PRODUCT
/Discord
$BUILDROOT
/usr/bin/
$PRODUCT
subst
"s|/usr/share/discord/Discord|/usr/bin/
$PRODUCT
|g"
$BUILDROOT
/
$LIBDIR
/
$PRODUCT
/discord.desktop
ln
-sf
$LIBDIR
/
$PRODUCT
/discord.desktop
$BUILDROOT
/usr/share/applications/discord.desktop
ln
-sf
$LIBDIR
/
$PRODUCT
/discord.png
$BUILDROOT
/usr/share/pixmaps/discord.png
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