Commit 882126d3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add tamtam messenger install support

parent eee16c00
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=tamtam-app
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "Install TamTam messenger from the official site" && exit
arch="$($DISTRVENDOR --debian-arch)"
case "$arch" in
amd64)
;;
i386)
arch=i686
;;
*)
fatal "Debian $arch arch is not supported"
;;
esac
# epm uses eget to download * names
epm install "https://download.tamtam.chat/latest/TamTam-$arch.deb"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=TamTam
LIBDIR=/opt
subst '1iAutoProv:no' $SPEC
mkdir -p $BUILDROOT/usr/bin/
ln -sf $LIBDIR/$PRODUCT/tamtam $BUILDROOT/usr/bin/tamtam
subst "s|%files|%files\n%_bindir/tamtam|" $SPEC
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