From 3a7e7a08e41a66c56118e78a7b165507536bb2cf Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 15 Nov 2024 15:13:06 +0500 Subject: [PATCH] epm: play added svp4 (eterbug #17842) --- pack.d/svp4.sh | 40 ++++++++++++++++++++++++++++++++++++++++ play.d/svp4.sh | 15 +++++++++++++++ repack.d/svp4.sh | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100755 pack.d/svp4.sh create mode 100755 play.d/svp4.sh create mode 100755 repack.d/svp4.sh diff --git a/pack.d/svp4.sh b/pack.d/svp4.sh new file mode 100755 index 00000000..0cb2c1c6 --- /dev/null +++ b/pack.d/svp4.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +TAR="$1" +RETURNTARNAME="$2" + +. $(dirname $0)/common.sh + +PRODUCT="svp4" +# svp4-linux.4.6.263 +VERSION="$(basename "$TAR" .tar.bz2 | grep -oP '\d+\.\d+(\.\d+)?')" + +mkdir -p opt/svp4 +erc $TAR + +mkdir installer +LANG=C grep --only-matching --byte-offset --binary --text $'7z\xBC\xAF\x27\x1C' "svp4-linux-64.run" | + cut -f1 -d: | + while read ofs; do + dd if="svp4-linux-64.run" bs=1M iflag=skip_bytes status=none skip="${ofs}" of="installer/bin-${ofs}.7z" + done +for f in "installer/"*.7z; do + 7z -bd -bb0 -y x -o"extracted/" "${f}" || true +done + +mv extracted/* opt/svp4/ + +PKGNAME=$PRODUCT-$VERSION + +erc a $PKGNAME.tar opt + +cat <$PRODUCT.eepm.yaml +name: $PRODUCT +group: Video +license: LicenseRef-custom +url: https://www.svp-team.com/wiki/SVP:Linux +summary: SmoothVideo Project 4 (SVP4) +description: SVP converts any video to 60 fps (and even higher) and performs this in real time right in your favorite video player. +EOF + +return_tar $PKGNAME.tar diff --git a/play.d/svp4.sh b/play.d/svp4.sh new file mode 100755 index 00000000..f1f22788 --- /dev/null +++ b/play.d/svp4.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +PKGNAME=svp4 +SUPPORTEDARCHES="x86_64" +VERSION="$2" +DESCRIPTION="SmoothVideo Project 4 (SVP4)" +URL="https://svp-team.com/wiki/SVP:Linux" + +. $(dirname $0)/common.sh + +warn_version_is_not_supported + +PKGURL="http://www.svp-team.com/files/svp4-latest.php?linux" + +install_pack_pkgurl diff --git a/repack.d/svp4.sh b/repack.d/svp4.sh new file mode 100755 index 00000000..8a5e2aa6 --- /dev/null +++ b/repack.d/svp4.sh @@ -0,0 +1,37 @@ +#!/bin/sh -x + +# It will be run with two args: buildroot spec +BUILDROOT="$1" +SPEC="$2" + +PRODUCTDIR=/opt/svp4 + +. $(dirname $0)/common.sh + + +# pack icons +for i in 32 48 64 128 ; do + [ -r $BUILDROOT/$PRODUCTDIR/svp-manager4-$i.png ] || continue + mkdir -p $BUILDROOT/usr/share/icons/hicolor/${i}x${i}/apps/ + cp $BUILDROOT/$PRODUCTDIR/svp-manager4-$i.png $BUILDROOT/usr/share/icons/hicolor/${i}x${i}/apps/svp-manager4.png +done +subst "s|%files|%files\n/usr/share/icons/hicolor/*x*/apps/svp-manager4.png|" $SPEC + +cat <