Commit 35b27428 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add far2l-portable

parent 93bc8a63
#!/bin/sh
TAR="$1"
#VERSION="$2"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
VERSION="2.4"
[ -n "$VERSION" ] || fatal "Missed archive version"
CURDIR=$(pwd)
PRODUCTNAME=far2l-portable
PRODUCTCUR=far2l
PKGNAME=$CURDIR/$PRODUCTNAME-$VERSION.tar
tdir=$(mktemp -d)
trap "rm -fr $tdir" EXIT
cd $tdir || fatal
# TODO: embed erc to epm
epm assure erc || epm ei erc || fatal
if echo "$TAR" | grep -q "far2l_portable.*.tar.gz" ; then
erc $TAR || fatal
RUNFILE="$(echo $tdir/far2l*.run)"
elif echo "$TAR" | grep -q "far2l_portable.*.run" ; then
RUNFILE="$TAR"
fi
[ -s "$RUNFILE" ] || fatal "Missed $RUNFILE"
mkdir -p $tdir/opt/$PRODUCTNAME/
sh $RUNFILE --noexec --target $tdir/opt/$PRODUCTNAME || fatal
#mkdir -p $tdir/usr/bin/
#ln -s /opt/$PRODUCTNAME/$PRODUCTCUR $tdir/usr/bin/$PRODUCTCUR
#erc pack $PKGNAME opt/$PRODUCTNAME usr/bin/ || fatal
erc pack $PKGNAME opt/$PRODUCTNAME || fatal
return_tar "$PKGNAME"
#!/bin/sh
PKGNAME=far2l-portable
SUPPORTEDARCHES="x86_64 x86 aarch64"
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="https://github.com/unxed/far2l-deb/raw/master/portable/far2l_portable_$arch.tar.gz"
epm pack --install $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 '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $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