-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlocalsend-1.3.0.recipe
More file actions
86 lines (76 loc) · 2.73 KB
/
Copy pathlocalsend-1.3.0.recipe
File metadata and controls
86 lines (76 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
SUMMARY="Share files over LAN with any device running LocalSend"
DESCRIPTION="Native Haiku client for the LocalSend v2.1 protocol. Share \
files and text messages over LAN with any device (Android, iOS, Windows, \
macOS, Linux) running LocalSend, without internet and without third-party \
servers. Includes a GUI application with device discovery, drag & drop, \
transfer history, favorites, share-via-link, a shared board with real-time \
updates across Haiku peers (publish files by dropping them on a desktop \
replicant; circle members see them instantly and can download or auto-sync \
them), one-drop sending to all online favorites, board visibility limited to \
a dedicated priority-contacts allow-list, recognition of other Haiku peers, \
a Tracker \"Send with LocalSend\" add-on, and optional Deskbar and desktop \
replicants. The interface follows the system language via the Haiku Locale \
Kit (English, Italian, Japanese, Chinese, Spanish)."
HOMEPAGE="https://github.com/atomozero/LocalSend"
COPYRIGHT="2026 atomozero"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/atomozero/LocalSend/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="8ffdd99dd5adc8e0b80208b3f8ef34c6fbc5a8a0399a27be0cc9644e1cca843e"
SOURCE_DIR="LocalSend-$portVersion"
ARCHITECTURES="x86_64"
PROVIDES="
localsend = $portVersion
app:LocalSend = $portVersion
cmd:localsend_send = $portVersion
cmd:localsend_receive = $portVersion
"
REQUIRES="
haiku
lib:libcrypto
lib:libqrencode
lib:libssl
"
BUILD_REQUIRES="
haiku_devel
devel:libcrypto
devel:libqrencode
devel:libssl
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
# GUI application + replicants (.so loaded by Deskbar / Tracker desktop
# shelf). The replicant binaries must sit next to the app: the Deskbar
# one is resolved relative to the app image path, the desktop one is
# found through the MIME database (mimeset runs at build time; the
# installed copies are re-registered by the post-install mimeset pass).
mkdir -p $appsDir
cp LocalSend $appsDir/LocalSend
cp LocalSendDeskbar $appsDir/LocalSendDeskbar
cp LocalSendDesktop $appsDir/LocalSendDesktop
# CLI tools.
mkdir -p $binDir
cp localsend-send $binDir/localsend-send
cp localsend-receive $binDir/localsend-receive
# Tracker add-on: "Send with LocalSend" entry in the file context menu.
mkdir -p $addOnsDir/Tracker
cp "Send with LocalSend" "$addOnsDir/Tracker/Send with LocalSend"
# Locale Kit catalogs: the UI language follows the system preferences.
mkdir -p $dataDir/locale/catalogs/x-vnd.LocalSend
cp data/locale/catalogs/x-vnd.LocalSend/*.catalog \
$dataDir/locale/catalogs/x-vnd.LocalSend/
# Deskbar launcher link.
addAppDeskbarSymlink $appsDir/LocalSend
}
TEST()
{
make check
}