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
eee16c00
Commit
eee16c00
authored
Jan 06, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add spotify install
parent
1005f858
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
spotify.sh
prescription.d/spotify.sh
+22
-0
spotify-client.sh
repack.d/spotify-client.sh
+30
-0
No files found.
prescription.d/spotify.sh
0 → 100755
View file @
eee16c00
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
spotify-client
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Spotify client for Linux from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
# epm uses eget to download * names
epm
install
"https://repository-origin.spotify.com/pool/non-free/s/spotify-client/
$(
epm print constructname
$PKGNAME
"*"
amd64 deb
)
"
repack.d/spotify-client.sh
0 → 100755
View file @
eee16c00
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
spotify
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
# see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=spotify
mkdir
-p
$BUILDROOT
/usr/bin/
ln
-sf
$LIBDIR
/
$PRODUCT
/
$PRODUCT
$BUILDROOT
/usr/bin/
$PRODUCT
mkdir
-p
$BUILDROOT
/usr/share/applications/
ln
-sf
$LIBDIR
/
$PRODUCT
/
$PRODUCT
.desktop
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
subst
"s|%files|%files
\n
/usr/share/applications/
$PRODUCT
.desktop|"
$SPEC
subst
"s|%files|%files
\n
/usr/share/icons/hicolor/*/apps/
$PRODUCT
.png|"
$SPEC
for
i
in
16 22 24 32 48 64 128 256
;
do
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
cp
$BUILDROOT
/
$LIBDIR
/
$PRODUCT
/icons/spotify-linux-
$i
.png
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$PRODUCT
.png
done
REQUIRES
=
"libcurl-gnutls"
subst
"s|^
\(
Name: .*
\)
$|
# Converted from original package requires
\n
Requires:
$REQUIRES
\n\1
|g"
$SPEC
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