luatos-mcp-git
LOW
maintainer taotieren
0 votes
base
luatos-cli-git
scanned 2026-09-10 09:20:32.972965
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: taotieren <admin@taotieren.com>
2
3
pkgbase=luatos-cli-git
4
pkgname=(luatos-cli-git luatos-mcp-git luatos-log-ffi-git)
5
pkgver=1.11.0.r0.g22a8f95
6
pkgrel=1
7
pkgdesc="LuatOS command-line toolset (pure Rust)-brushing, logging, project management, firmware resources and builds"
8
arch=($CARCH)
9
url="https://github.com/wendal/luatos-cli"
10
license=('MIT')
11
depends=(
12
glibc
13
libbz2.so
14
libgcc_s.so
15
liblzma.so
16
systemd-libs
17
)
18
makedepends=(
19
git
20
rust
21
pkgconf
22
)
23
optdepends=(
24
"ch343ser-dkms"
25
"libftdi: A library to talk to FTDI chips"
26
)
27
backup=()
28
options=('!lto')
29
install=
30
source=("${pkgbase}::git+${url}.git"
31
luatos-cli.install
32
luatos-mcp.install
33
luatos-log-ffi.install)
34
sha256sums=('SKIP'
35
'028878803a8de1324da183486e04457b413417d6af7396f86deae87929232904'
36
'62097f257e96bb89ba585211451b6df9d168f96842289d757a190c34465b9ac7'
37
'6c38d27bc0d64be9576a0189ab750fb762205622886ed35725d177a4f6f4526d')
38
39
pkgver() {
40
cd "${srcdir}/${pkgbase}"
41
(
42
set -o pipefail
43
git describe --long --tag --abbrev=7 2>/dev/null | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' ||
44
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
45
)
46
}
47
48
prepare() {
49
git -C "${srcdir}/${pkgbase}" clean -dfx
50
cd "${srcdir}/${pkgbase}/"
51
cargo update -w
52
cargo fetch --locked --target host-tuple
53
cargo fetch --target "$CARCH-unknown-linux-gnu"
54
}
55
56
build() {
57
cd "${srcdir}/${pkgbase}/"
58
59
export RUSTUP_TOOLCHAIN=stable
60
export CARGO_TARGET_DIR=target
61
62
cargo build --release --all-features
63
# cargo build --release --all-features -p luatos-cli
64
}
65
66
# check() {
67
# cd "${srcdir}/${pkgbase}/"
68
69
# export RUSTUP_TOOLCHAIN=stable
70
# cargo test --all-features
71
# }
72
73
package_luatos-cli-git() {
74
provides=(${pkgname%-git})
75
conflicts=(${pkgname%-git})
76
replaces=()
77
install=${pkgname%-git}.install
78
cd "${srcdir}/${pkgbase}/"
79
80
export RUSTUP_TOOLCHAIN=stable
81
install -Dm0644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
82
install -Dm0644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
83
cp -rv docs "${pkgdir}/usr/share/doc/${pkgname}/"
84
install -Dm0755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/"
85
}
86
87
package_luatos-mcp-git() {
88
pkgdesc="LuatOS MCP server - exposes flash/log/project tools to AI agents over stdio"
89
provides=(${pkgname%-git})
90
conflicts=(${pkgname%-git})
91
replaces=()
92
depends+=(
93
luatos-cli
94
)
95
install=${pkgname%-git}.install
96
cd "${srcdir}/${pkgbase}/"
97
98
install -Dm0644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
99
install -Dm0755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/"
100
}
101
102
package_luatos-log-ffi-git() {
103
pkgdesc="C ABI export of luatos-log SOC binary log decoder (Air1601/CCM4211)"
104
provides=(libluatos_log_ffi.so)
105
conflicts=(libluatos_log_ffi.so)
106
replaces=()
107
depends=(
108
glibc
109
libgcc_s.so
110
)
111
install=${pkgname%-git}.install
112
cd "${srcdir}/${pkgbase}/"
113
114
export RUSTUP_TOOLCHAIN=stable
115
install -vDm0644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
116
install -vDm0644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
117
118
install -vDm0755 "target/release/libluatos_log_ffi.so" -t "${pkgdir}/usr/lib/"
119
install -vDm0644 "crates/luatos-log-ffi/include/luatos_log.h" -t "${pkgdir}/usr/include/"
120
121
install -vDm0644 /dev/stdin "${pkgdir}/usr/lib/pkgconfig/${pkgname%-git}.pc" <<EOF
122
prefix=/usr
123
exec_prefix=\${prefix}
124
libdir=\${prefix}/lib
125
includedir=\${prefix}/include
126
127
Name: ${pkgname%-git}
128
Description: ${pkgdesc}
129
Version: ${pkgver%%.r*}
130
URL: ${url}
131
Libs: -L\${libdir} -lluatos_log_ffi
132
Cflags: -I\${includedir}
133
EOF
134
135
install -vDm0644 /dev/stdin "${pkgdir}/usr/lib/cmake/${pkgname%-git}/${pkgname%-git}Config.cmake" <<EOF
136
# ${pkgname%-git}Config.cmake -- CMake package configuration
137
#
138
# Imported target:
139
# ${pkgname%-git}::${pkgname%-git} shared library, C ABI
140
#
141
# Usage:
142
# find_package(${pkgname%-git} REQUIRED)
143
# target_link_libraries(my_app PRIVATE ${pkgname%-git}::${pkgname%-git})
144
#
145
# Decoded symbols: luatos_soclog_analyze(), pySoclogAnalyze() (alias),
146
# luatos_soclog_version()
147
148
get_filename_component(_luatos_log_ffi_dir "\${CMAKE_CURRENT_LIST_FILE}" DIRECTORY)
149
get_filename_component(_luatos_log_ffi_prefix "\${_luatos_log_ffi_dir}/../../.." ABSOLUTE)
150
151
if(NOT TARGET ${pkgname%-git}::${pkgname%-git})
152
add_library(${pkgname%-git}::${pkgname%-git} SHARED IMPORTED)
153
set_target_properties(${pkgname%-git}::${pkgname%-git} PROPERTIES
154
IMPORTED_LOCATION "\${_luatos_log_ffi_prefix}/lib/libluatos_log_ffi.so"
155
INTERFACE_INCLUDE_DIRECTORIES "\${_luatos_log_ffi_prefix}/include"
156
)
157
endif()
158
159
set(${pkgname%-git}_FOUND TRUE)
160
set(${pkgname%-git}_VERSION "${pkgver%%.r*}")
161
set(${pkgname%-git}_INCLUDE_DIRS "\${_luatos_log_ffi_prefix}/include")
162
set(${pkgname%-git}_LIBRARIES "\${_luatos_log_ffi_prefix}/lib/libluatos_log_ffi.so")
163
EOF
164
165
install -vDm0644 /dev/stdin "${pkgdir}/usr/lib/cmake/${pkgname%-git}/${pkgname%-git}ConfigVersion.cmake" <<EOF
166
set(PACKAGE_VERSION "${pkgver%%.r*}")
167
168
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
169
set(PACKAGE_VERSION_COMPATIBLE FALSE)
170
else()
171
set(PACKAGE_VERSION_COMPATIBLE TRUE)
172
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
173
set(PACKAGE_VERSION_EXACT TRUE)
174
endif()
175
endif()
176
EOF
177
}
178
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-10 09:20:32 | Low | 1 |