Commit 4592aa9a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add dorion (Discord alternative client)

parent a54a27a2
#!/bin/sh
PKGNAME=dorion
SUPPORTEDARCHES="x86_64 aarch64 armhf"
VERSION="$2"
DESCRIPTION="Dorion - lightweight alternative Discord client"
URL="https://github.com/SpikeHD/Dorion"
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm)
# Dorion_6.11.0-1.x86_64.rpm / Dorion_6.11.0-1.aarch64.rpm / Dorion_6.11.0-1.armhfp.rpm
[ "$arch" = "armhf" ] && arch="armhfp"
PKGURL="$(get_github_url SpikeHD/Dorion Dorion_${VERSION}-1.${arch}.rpm)"
;;
*)
# Dorion_6.11.0_amd64.deb / Dorion_6.11.0_arm64.deb / Dorion_6.11.0_armhf.deb
arch="$(epm print info --distro-arch)"
[ "$arch" = "armv7l" ] && arch="armhf"
PKGURL="$(get_github_url SpikeHD/Dorion Dorion_${VERSION}_${arch}.deb)"
;;
esac
install_pkgurl
#!/bin/sh -x
BUILDROOT="$1"
SPEC="$2"
PRODUCT=Dorion
. $(dirname $0)/common.sh
# Dorion is a Tauri application (Rust + WebView)
# License is GPL-3.0 per https://github.com/SpikeHD/Dorion
# Fix empty License field from original package
subst "s|^License:.*|License: GPL-3.0|" $SPEC
# Move lib files to /opt/Dorion
move_to_opt /usr/lib/$PRODUCT
# Move binary from /usr/bin to /opt/Dorion
move_file /usr/bin/$PRODUCT $PRODUCTDIR/$PRODUCT
add_bin_link_command $PRODUCT
add_bin_link_command dorion $PRODUCT
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