remove ia64 keywords
[gentoo-zh.git] / net-misc / localsend-bin / localsend-bin-1.16.1.ebuild
blob6862d3fde6e2b5d6272552609087861a1c628e13
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit desktop
8 MY_PN="${PN%-bin}"
9 DESCRIPTION="An open-source cross-platform alternative to AirDrop"
10 HOMEPAGE="https://localsend.org"
11 SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/v${PV}/${MY_PN}-${PV}-linux-x86-64.tar.gz"
12 S="${WORKDIR}"
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="~amd64"
18 RESTRICT="bindist"
20 QA_PREBUILT="opt/localsend/lib/*"
22 DEPEND="
23 dev-libs/libayatana-appindicator
24 x11-misc/xdg-user-dirs
27 src_install() {
28 exeinto /opt/localsend
29 doexe localsend_app
31 cp -R "${S}/lib/" "${D}/opt/localsend" || die "install libraries failed"
32 cp -R "${S}/data/" "${D}/opt/localsend" || die "install neccessary assets failed"
34 newicon "${S}"/data/flutter_assets/assets/img/logo.ico localsend.ico
36 newmenu "${FILESDIR}"/localsend.desktop localsend.desktop
38 dodir /opt/bin
39 dosym ../localsend/localsend_app /opt/bin/localsend