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
Nurlan
eepm
Commits
c86759ed
Commit
c86759ed
authored
Apr 13, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add vivaldi-codecs-ffmpeg-extra
parent
3442e1ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
1 deletion
+70
-1
vivaldi-codecs-ffmpeg-extra.sh
play.d/vivaldi-codecs-ffmpeg-extra.sh
+49
-0
vivaldi.sh
play.d/vivaldi.sh
+3
-1
vivaldi-snapshot-codecs-ffmpeg-extra.sh
repack.d/vivaldi-snapshot-codecs-ffmpeg-extra.sh
+9
-0
vivaldi-stable-codecs-ffmpeg-extra.sh
repack.d/vivaldi-stable-codecs-ffmpeg-extra.sh
+9
-0
No files found.
play.d/vivaldi-codecs-ffmpeg-extra.sh
0 → 100755
View file @
c86759ed
#!/bin/sh
BRANCH
=
stable
PRODUCTDIR
=
/opt/vivaldi
DESCRIPTION
=
''
if
[
"
$2
"
=
"snapshot"
]
;
then
BRANCH
=
snapshot
#PRODUCTDIR=$PRODUCTDIR-$BRANCH
fi
BASEPKGNAME
=
vivaldi-
$BRANCH
PKGNAME
=
$vivaldi
-
$BRANCH
-codecs-ffmpeg-extra
.
$(
dirname
$0
)
/common.sh
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
VIVALDI_VERSION
=
$(
epm print version
for
package vivaldi-stable
)
||
fatal
# used in update-ffmpeg
epm
install
--skip-installed
tar
binutils
||
exit
# install ffmpeg extra codecs
pack_ffmpeg
()
{
SOURCE
=
"usr/lib/chromium-browser/libffmpeg.so"
DEST
=
"
$PRODUCTDIR
"
mkdir
-p
.
$DEST
cp
$SOURCE
.
$DEST
/libffmpeg.so.
${
VIVALDI_VERSION
%\.*\.*
}
CNAME
=
"
$(
echo
"
$(
basename
$SUITABLE_URLS
)
"
|
sed
-e
"s|chromium|
$BASEPKGNAME
|"
-e
"s|-0ubuntu.*|-1.tar|"
)
"
#"
a
=
''
tar
cf
$CNAME
.
$(
dirname
$DEST
)
epm
--repack
install
$CNAME
}
# download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function
[
-s
$PRODUCTDIR
/update-ffmpeg
]
||
fatal
"
$PRODUCTDIR
/update-ffmpeg is missed"
SC
=
$(
mktemp
)
awk
'BEGIN{desk=0}{ if(/^.*--system.*/&&desk==0){desk++} ; if (desk==0) {print} }'
<
$PRODUCTDIR
/update-ffmpeg
>
$SC
.
$SC
DDIR
=
$(
mktemp
-d
)
cd
$DDIR
||
fatal
$EGET
$FFMPEG_URL_DEB
SUITABLE_URLS
=
$FFMPEG_URL_DEB
ar
-x
*
.deb
tar
xf
"data.tar.xz"
pack_ffmpeg
rm
-rf
$DDIR
rm
-f
$SC
play.d/vivaldi.sh
View file @
c86759ed
...
@@ -13,7 +13,7 @@ PKGNAME=vivaldi-$BRANCH
...
@@ -13,7 +13,7 @@ PKGNAME=vivaldi-$BRANCH
arch
=
"
$(
$DISTRVENDOR
--debian-arch
)
"
arch
=
"
$(
$DISTRVENDOR
--debian-arch
)
"
case
"
$arch
"
in
case
"
$arch
"
in
amd64|i386|armhf
)
amd64|
aarch64|
i386|armhf
)
;;
;;
*
)
*
)
fatal
"Debian
$arch
arch is not supported"
fatal
"Debian
$arch
arch is not supported"
...
@@ -29,3 +29,5 @@ esac
...
@@ -29,3 +29,5 @@ esac
# epm uses eget to download * names
# epm uses eget to download * names
epm
install
"https://repo.vivaldi.com/archive/deb/pool/main/
$(
epm print constructname
$PKGNAME
"*"
$arch
deb
)
"
epm
install
"https://repo.vivaldi.com/archive/deb/pool/main/
$(
epm print constructname
$PKGNAME
"*"
$arch
deb
)
"
epm play vivaldi-codecs-ffmpeg-extra
$BRANCH
repack.d/vivaldi-snapshot-codecs-ffmpeg-extra.sh
0 → 100755
View file @
c86759ed
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
vivaldi-snapshot-codecs-ffmpeg-extra
subst
'1iRequires:vivaldi-snapshot'
$SPEC
repack.d/vivaldi-stable-codecs-ffmpeg-extra.sh
0 → 100755
View file @
c86759ed
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
vivaldi-stable-codecs-ffmpeg-extra
subst
'1iRequires:vivaldi-stable'
$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