gentoo-zh/app-office/bytedance-feishu/bytedance-feishu-7.15.13.ebuild

61 lines
1.6 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker xdg
DESCRIPTION="
飞书Feishu
飞书整合即时消息、日历、音视频会议、云文档、工作台等功能于一体,成就团队和个人,更高效、更愉悦。 "
HOMEPAGE="https://www.feishu.cn/download"
SRC_URI="
amd64? ( Feishu-linux_x64-${PV}.deb )
arm64? ( Feishu-linux_arm64-${PV}.deb )
mips? ( Feishu-linux_mips64el-${PV}.deb )
"
RESTRICT="strip mirror bindist fetch"
S="${WORKDIR}"
KEYWORDS="~amd64 ~arm64 ~mips"
LICENSE="Feishu-EULA"
SLOT="0"
DEPEND="
app-misc/ca-certificates
dev-libs/nss
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXext
x11-misc/xdg-utils
"
RDEPEND="${DEPEND}"
pkg_nofetch() {
einfo "Please download ${SRC_URI} at ${HOMEPAGE} "
einfo "and copy the .deb file into your distfiles directory"
}
src_prepare() {
default
unpacker "${S}/usr/share/man/man1/bytedance-feishu-stable.1.gz"
unpacker "${S}/usr/share/doc/bytedance-feishu-stable/changelog.gz"
}
src_install() {
insinto "/"
doins -r "${S}/opt/"
dosym /opt/bytedance/feishu/bytedance-feishu /usr/bin/bytedance-feishu-stable
domenu "${S}/usr/share/applications/bytedance-feishu.desktop"
doman "${S}/bytedance-feishu-stable.1"
dodoc "${S}/changelog"
local size
for size in 16 24 32 48 64 128 256 ; do
newicon -s ${size} "${S}/opt/bytedance/feishu/product_logo_${size}.png" ${PN}.png
done
newicon -s scalable "${S}/opt/bytedance/feishu/product_logo_256.svg" ${PN}.svg
fperms +x "/opt/bytedance/feishu/bytedance-feishu"
fperms +x "/opt/bytedance/feishu/feishu"
fperms +x "/opt/bytedance/feishu/vulcan/vulcan"
}