Compare commits
No commits in common. "stable" and "f42" have entirely different histories.
2 changed files with 65 additions and 0 deletions
37
container.yaml
Normal file
37
container.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
flatpak:
|
||||
id: org.fedoraproject.Platform.Codecs.openh264
|
||||
build-extension: true
|
||||
runtime: org.fedoraproject.Platform
|
||||
runtime-version: f42
|
||||
sdk: org.fedoraproject.Sdk
|
||||
name: openh264
|
||||
component: openh264-flatpak
|
||||
branch: f42
|
||||
packages:
|
||||
- openh264-flatpak-config
|
||||
# for cleanup-commands (part of runtime)
|
||||
- coreutils-single
|
||||
extra-data:
|
||||
- filename: openh264-2.5.1-1.fc42.aarch64.rpm
|
||||
url: https://codecs.fedoraproject.org/openh264/42/aarch64/Packages/o/openh264-2.5.1-1.fc42.aarch64.rpm
|
||||
sha256: 1ce57ac0724e5751281f5edf5de5e172b7fb309f5673813bbb8afd15bf32729b
|
||||
size: 389543
|
||||
only-arches:
|
||||
- aarch64
|
||||
- filename: openh264-2.5.1-1.fc42.ppc64le.rpm
|
||||
url: https://codecs.fedoraproject.org/openh264/42/ppc64le/Packages/o/openh264-2.5.1-1.fc42.ppc64le.rpm
|
||||
sha256: c55a4dbecccbbaf3b02723afb87a89b7cd551f16d679bc6f6af5ddffe01636a2
|
||||
size: 439645
|
||||
only-arches:
|
||||
- ppc64le
|
||||
- filename: openh264-2.5.1-1.fc42.x86_64.rpm
|
||||
url: https://codecs.fedoraproject.org/openh264/42/x86_64/Packages/o/openh264-2.5.1-1.fc42.x86_64.rpm
|
||||
sha256: 223f3a74835cb4e1aca37161814c14083be862cccfe01bf5c58138704ceb2801
|
||||
size: 433204
|
||||
only-arches:
|
||||
- x86_64
|
||||
cleanup-commands: |
|
||||
mkdir -p /app/bin
|
||||
ln -s extra /app/lib
|
||||
echo -e "#!/bin/sh\nbsdtar --strip-components=3 -xf *.rpm\nrm -f *.rpm" > /app/bin/apply_extra
|
||||
chmod +x /app/bin/apply_extra
|
||||
28
update.sh
Executable file
28
update.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#! /bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
fc=42
|
||||
vr=$1
|
||||
n=0
|
||||
|
||||
for arch in aarch64 ppc64le x86_64
|
||||
do
|
||||
f=openh264-${vr}.fc${fc}.${arch}.rpm
|
||||
url=https://codecs.fedoraproject.org/openh264/${fc}/${arch}/Packages/o/${f}
|
||||
|
||||
[ -f $f ] || wget $url
|
||||
sha256=$(sha256sum $f | cut -d' ' -f1)
|
||||
size=$(du -sb $f | cut -f1)
|
||||
|
||||
URL="$url" SHA256="$sha256" SIZE="$size" \
|
||||
yq -I 4 -i "
|
||||
.flatpak.extra-data[${n}].url = strenv(URL) |
|
||||
.flatpak.extra-data[${n}].sha256 = strenv(SHA256) |
|
||||
.flatpak.extra-data[${n}].size = env(SIZE)" \
|
||||
container.yaml
|
||||
|
||||
let n+=1
|
||||
done
|
||||
|
||||
#flatpak-module build-container-local --install
|
||||
Loading…
Add table
Add a link
Reference in a new issue