Commit 2cad885f authored by Mikhail Tergoev's avatar Mikhail Tergoev Committed by Vitaly Lipatov

epm play far2l-portable: move to AppImage

parent 91021dca
......@@ -2,33 +2,16 @@
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
PRODUCTCUR=far2l
# PRODUCT="far2l"
. $(dirname $0)/common.sh
[ -n "$VERSION" ] || fatal "Missed archive version"
PKGNAME=$PRODUCT-$VERSION.tar
if echo "$TAR" | grep -q "far2l_portable.*.tar.gz" ; then
erc $TAR || fatal
RUNFILE="$(echo far2l*.run)"
elif echo "$TAR" | grep -q "far2l_portable.*.run" ; then
RUNFILE="$TAR"
fi
[ -s "$RUNFILE" ] || fatal "Missed $RUNFILE"
mkdir -p opt/$PRODUCT/
sh $RUNFILE --nox11 --noexec --target opt/$PRODUCT || fatal
#mkdir -p $tdir/usr/bin/
#ln -s /opt/$PRODUCT/$PRODUCTCUR $tdir/usr/bin/$PRODUCTCUR
#erc pack $PKGNAME opt/$PRODUCT usr/bin/ || fatal
erc pack $PKGNAME opt/$PRODUCT || fatal
erc $TAR || fatal
PKGNAME="$(ls | grep -e "_x86_64.AppImage$")"
return_tar "$PKGNAME"
# TODO: return original version from generic-appimage.sh
# VERSION="$(basename "$PKGNAME" .AppImage | awk -F_ '{print $2}')"
# [ -n "$VERSION" ] || fatal "Can't get version $TAR."
# mv "$PKGNAME" "$PRODUCT-$VERSION.AppImage"
# return_tar "$PRODUCT-$VERSION.AppImage"
#!/bin/sh
PKGNAME=far2l-portable
SUPPORTEDARCHES="x86_64 x86 aarch64"
PKGNAME="far2l-portable"
SUPPORTEDARCHES="x86_64"
DESCRIPTION="FAR2L Portable from the official site"
. $(dirname $0)/common.sh
arch=$(epm print info -a)
case $arch in
x86_64)
arch="amd64" ;;
x86)
arch="i386" ;;
aarch64)
arch=$arch ;;
*)
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
PKGURL=$(epm tool eget --list --latest https://github.com/spvkgn/far2l-portable/releases "far2l_x86_64.AppImage.tar")
[ -n "$PKGURL" ] || fatal "Can't get package URL"
VERSION="2.4"
PKGURL="https://github.com/unxed/far2l-deb/raw/master/portable/far2l_portable_$arch.tar.gz"
epm pack --install $PKGNAME "$PKGURL" "$VERSION"
epm --install pack $PKGNAME "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=far2l
PRODUCTDIR=/opt/far2l-portable
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: File tools|" $SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst "s|^URL:.*|URL: https://github.com/elfmz/far2l|" $SPEC
subst "s|^Summary:.*|Summary: Linux port of FAR v2|" $SPEC
subst '1iConflicts: far2l' $SPEC
add_bin_cdexec_command
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment