Commit ede247b0 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

drop closed apps (icq,yandex-chats and yuzu)

parent 4687107c
#!/bin/sh
PKGNAME=icq
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="ICQ for Linux from the official site"
URL="https://icq.com/desktop/ru?#linux"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/icq-im | epm --inscript tool json -b | grep version | head -n1 | sed -e 's|.*"\([0-9.]*\)".*|\1|') || fatal "Can't get current version" #'
#VERSION="10.0.16100"
fi
# TODO: install from snap
#PKGURL="https://icq-www.hb.bizmrg.com/linux/x64/icq.tar.xz"
PKGURL="https://hb.bizmrg.com/icq-www/linux/x64/packages/$VERSION/icq-${VERSION}_64bit.tar.xz"
install_pkgurl
#!/bin/sh
PKGNAME=yandex-messenger
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Yandex Messenger is designed for communication: send text messages, make audio and video calls in private and group chats, subscribe to and create channels."
URL="https://yandex.ru/support/messenger/index.html"
. $(dirname $0)/common.sh
warn_version_is_not_supported
# they publish it on Yandex Disk only (without direct download)
PKGURL="ipfs://Qma7e4MpopXpeoNnTsCXxx92q1oTrgJmz1aHjecvcEBNWx?filename=Yandex_Messenger_2.155.0_amd64.deb"
install_pkgurl
#!/bin/sh
PKGNAME=yuzu-mainline
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="yuzu is the world's most popular, open-source, Nintendo Switch emulator"
URL="https://github.com/yuzu-emu/yuzu-mainline/releases"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] || VERSION="$VERSION-*"
# Closed by Nintendo
#PKGURL=$(eget --list --latest https://github.com/yuzu-emu/yuzu-mainline/releases "$PKGNAME-$VERSION.AppImage")
# https://github.com/yuzu-emu/yuzu-mainline/releases/download/mainline-0-1733/yuzu-mainline-20240303-7ffac53c9.AppImage
PKGURL="ipfs://QmVQ9La5aqL89mm6PkiYfBn5nF9NyhFsuWyaesY3k9JsUN?filename=yuzu-mainline-20240303-7ffac53c9.AppImage"
install_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PKGNAME="yandex-messenger"
subst "s|^Name:.*|Name: $PKGNAME|" $SPEC
PRODUCTDIR=/opt/yandex-messenger
PRODUCTCUR=yandex-messenger
. $(dirname $0)/common-chromium-browser.sh
move_to_opt "/opt/Yandex Messenger"
add_bin_link_command $PRODUCT $PRODUCTDIR/$PRODUCT
add_bin_link_command $PRODUCTCUR $PRODUCT
fix_desktop_file "/opt/Yandex Messenger" "/opt/yandex-messenger"
fix_chrome_sandbox
add_electron_deps
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=icq
PRODUCTCUR=icq
#PREINSTALL_PACKAGES="glib2 libdbus libexpat libgbm libgio libgpg-error libuuid zlib fontconfig libGL"
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Networking/Instant messaging|" $SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst "s|^URL:.*|URL: https://icq.com/desktop/ru|" $SPEC
subst "s|^Summary:.*|Summary: ICQ New for Linux|" $SPEC
# move package to /opt
mkdir -p $BUILDROOT$PRODUCTDIR
mv $BUILDROOT/* $BUILDROOT$PRODUCTDIR
subst "s|\"/|\"$PRODUCTDIR/|" $SPEC
add_bin_exec_command $PRODUCT
# Hack against https://bugzilla.altlinux.org/43779
# Create non writeable local .desktop file
cat <<EOF >$BUILDROOT/usr/bin/$PRODUCT
#!/bin/sh
LDT=~/.local/share/applications/icqdesktop.desktop
[ ! -r "\$LDT" ] && mkdir -p ~/.local/share/applications/ && echo "[Desktop Entry]" > "\$LDT" && chmod a-w "\$LDT"
exec $PRODUCTDIR/$PRODUCT "\$@"
EOF
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=ICQ for Linux
Comment=Simple way to communicate and nothing extra. New design, group chats and much more!
Icon=icq
Exec=icq -urlcommand %u
Categories=InstantMessaging;Social;Chat;Network;
Terminal=false
MimeType=x-scheme-handler/icq;
Keywords=icq;
EOF
# https://hb.bizmrg.com/icq-www/linux/x64/packages/10.0.13286/icq.png
install_file https://dashboard.snapcraft.io/site_media/appmedia/2020/04/icq_copy.png /usr/share/pixmaps/$PRODUCT.png
subst "s|.*/opt/icq/unittests.*||" $SPEC
add_libs_requires
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