ectool-rs
LOW
maintainer taotieren
0 votes
scanned 2026-09-10 11:20:36.259518
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
pkgname=ectool-rs
4
pkgver=0.2.0
5
pkgrel=1
6
pkgdesc="Reusable flashing and UniLog tools for EigenComm cellular chips"
7
arch=($CARCH)
8
url="https://github.com/yuzhan-tech/ectool"
9
license=('MIT')
10
provides=(${pkgname%-rs})
11
conflicts=(${pkgname%-rs})
12
replaces=()
13
depends=(
14
glibc
15
libgcc_s.so
16
systemd-libs
17
)
18
makedepends=(
19
git
20
rust
21
pkgconf
22
)
23
optdepends=(
24
"luatos-tools: A CLI for building, flashing, and debugging LuatOS firmware on EC618 / EC7xx modules"
25
)
26
backup=()
27
options=('!lto')
28
install=
29
source=("${pkgname%-rs}::git+${url}.git#tag=v${pkgver}")
30
sha256sums=('e0837e194221ac8b0f6d351f32be5cea364b9275faa0a2ce26ebc987445a3fe0')
31
32
prepare() {
33
git -C "${srcdir}/${pkgname%-rs}" clean -dfx
34
cd "${srcdir}/${pkgname%-rs}/"
35
cargo update -w
36
cargo fetch --locked --target host-tuple
37
cargo fetch --target "$CARCH-unknown-linux-gnu"
38
}
39
40
build() {
41
cd "${srcdir}/${pkgname%-rs}/"
42
43
export RUSTUP_TOOLCHAIN=stable
44
export CARGO_TARGET_DIR=target
45
cargo build --release --all-features
46
}
47
48
# check() {
49
# cd "${srcdir}/${pkgname}/"
50
51
# export RUSTUP_TOOLCHAIN=stable
52
# cargo test --all-features
53
# }
54
55
package() {
56
cd "${srcdir}/${pkgname%-rs}/"
57
58
export RUSTUP_TOOLCHAIN=stable
59
install -Dm0644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
60
install -Dm0644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
61
install -Dm0755 "target/release/${pkgname%-rs}" -t "${pkgdir}/usr/bin/"
62
install -vDm644 /dev/stdin ${pkgdir}/usr/lib/udev/rules.d/71-eigencomm.rules <<EOF
63
# This file should be copied to /etc/udev/rules.d on GNU/Linux OS and derived
64
# Add permission to all user to have complete acces to eeprom programmers
65
# EigenComm
66
SUBSYSTEM=="usb", ATTRS{idVendor}=="17d1", ATTRS{idProduct}=="0001", TAG+="uaccess"
67
EOF
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-10 11:20:36 | Low | 1 |