Commit 3f3429a8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add webdavmailrucloud

parent cfbf968a
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
if echo "$TAR" | grep -q "WebDAVCloudMailRu-.*.zip" ; then
erc "$TAR" || fatal
else
fatal "We support only WebDAVCloudMailRu....zip"
fi
rm -v "$TAR"
VERSION="$(echo "$TAR" | sed -e 's|.*WebDAVCloudMailRu-||' -e 's|-.*||')"
mkdir opt
mv WebDAVCloudMailRu* opt/WebDAVCloudMailRu || fatal
PKGNAME=webdavmailrucloud-$VERSION.tar
erc pack $PKGNAME opt/WebDAVCloudMailRu
return_tar $PKGNAME
#!/bin/sh
PKGNAME=webdavmailrucloud
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="WebDAV emulator for Cloud.mail.ru / Yandex.Disk"
URL="https://github.com/yar229/WebDavMailRuCloud"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/yar229/WebDavMailRuCloud/releases "WebDAVCloudMailRu-${VERSION}-dotNet6.zip") || fatal
epm pack --install $PKGNAME $PKGURL
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCTDIR=/opt/WebDAVCloudMailRu
. $(dirname $0)/common.sh
subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC
subst "s|^License: unknown$|License: MIT|" $SPEC
subst "s|^Url:.*|Url: https://github.com/yar229/WebDavMailRuCloud|" $SPEC
subst "s|^Summary:.*|Summary: WebDAV emulator for Cloud.mail.ru / Yandex.Disk|" $SPEC
mkdir -p usr/bin
cat <<EOF >usr/bin/wdmrc
#!/bin/sh
dotnet $PRODUCTDIR/wdmrc.dll "\$@"
EOF
chmod a+x usr/bin/wdmrc
pack_file /usr/bin/wdmrc
if [ "$(epm print info -s)" = "alt" ] ; then
# just for correct deps
add_requires dotnet-6.0
fi
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