Commit 020eddd1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play ayugram: switch to rsg245 Arch binary builds (v6.3.10)

parent 5520b1ed
#!/bin/sh
PKGNAME=ayugram
PKGNAME=ayugram-desktop
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Desktop Telegram client with good customization and Ghost mode"
URL="https://github.com/AyuGram/AyuGramDesktop"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/nevazno00/AyuGramDesktop-Linux-Binary/releases "AyuGram-$VERSION")
PKGURL=$(get_github_url "rsg245/ayugram-desktop-bin-arch" "ayugram-desktop-${VERSION}-*-x86_64.pkg.tar.zst")
install_pack_pkgurl
install_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=ayugram-desktop
. $(dirname $0)/common.sh
# replace old package name
add_conflicts ayugram
add_obsoletes ayugram
# /usr/bin/AyuGram already in package, add lowercase alias
add_bin_link_command ayugram AyuGram
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=ayugram
PRODUCTCUR=AyuGram
PRODUCTDIR=/opt/$PRODUCT
. $(dirname $0)/common.sh
# /usr/bin/AyuGram
add_conflicts ayugram-desktop
add_bin_link_command $PRODUCT $PRODUCTDIR/$PRODUCT
add_bin_link_command $PRODUCTCUR $PRODUCT
......@@ -466,6 +466,12 @@ add_conflicts()
__add_tag_after_d "Conflicts: $*"
}
add_obsoletes()
{
[ -n "$1" ] || return
__add_tag_after_d "Obsoletes: $*"
}
add_provides()
{
[ -n "$1" ] || return
......
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