Add localsend package

This commit is contained in:
Sravan Balaji
2024-12-24 17:30:33 -05:00
parent f9f11bc353
commit c464313c67
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST localsend-bin-1.16.1.AppImage 54359232 BLAKE2B 85d4ddd2a993352e1636f97bd8d1bc197b9228111a602cc4bf67e9c5aea0ab912dd87e2bc13b73f61ac718c21b3f2dfe0209094f0dadbfbb93c4f2e49c25b626 SHA512 e9f01fd8a72bb21d15cadb14d0f0ec9aeb02899ac65f9361e81f541b10cb7b8a6e44d1b7ddf1dc281529e68b6f7107e88e0a52b40522a1ecaf49a71396cf9cde
DIST localsend-bin-1.16.1.deb 11804928 BLAKE2B 04a6f53455119bd4abc06dd148262d8f0ce9b32c7a00809fb3758cc0d9a1863d7fe1fcf9fd910de104b4055a6679dec3a22f019274ec47d19ed0dad9f4195389 SHA512 639f05d92985e02684ba627d537023097bce407ddf8c0eec99d394fd3200d6d379725c1926d97231b5324989f40864a03d2064268b34126200c26443941b0e79

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="An open-source cross-platform alternative to AirDrop"
HOMEPAGE="https://localsend.org"
SRC_URI="
https://github.com/localsend/localsend/releases/download/v${PV}/LocalSend-${PV}-linux-x86-64.AppImage -> ${P}.AppImage
https://github.com/localsend/localsend/releases/download/v${PV}/LocalSend-${PV}-linux-x86-64.deb -> ${P}.deb
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip"
RDEPEND="
sys-fs/fuse:0
"
S="${WORKDIR}"
QA_PREBUILT="*"
src_install() {
cd ${WORKDIR}
cp ${DISTDIR}/${P}.AppImage localsend_app || die
dobin localsend_app
cd ${S}
tar -xf data.tar.xz
cd ${S}/usr/share/applications
insinto /usr/share/applications
doins localsend_app.desktop
cd ${S}/usr/share/icons/hicolor/128x128/apps
insinto /usr/share/icons/hicolor/128x128/apps
doins localsend_app.png
cd ${S}/usr/share/icons/hicolor/256x256/apps
insinto /usr/share/icons/hicolor/256x256/apps
doins localsend_app.png
}