ectool-rs-git
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-git
4
pkgver=0.2.0.r1.g1fe3353
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-git})
11
conflicts=(${pkgname%-rs-git})
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}::git+${url}.git")
30
sha256sums=('SKIP')
31
32
pkgver() {
33
cd "${srcdir}/${pkgname%-rs-git}"
34
(
35
set -o pipefail
36
git describe --long --tag --abbrev=7 2>/dev/null | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' ||
37
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
38
)
39
}
40
41
prepare() {
42
git -C "${srcdir}/${pkgname%-rs-git}" clean -dfx
43
cd "${srcdir}/${pkgname%-rs-git}/"
44
cargo update -w
45
cargo fetch --locked --target host-tuple
46
cargo fetch --target "$CARCH-unknown-linux-gnu"
47
}
48
49
build() {
50
cd "${srcdir}/${pkgname%-rs-git}/"
51
52
export RUSTUP_TOOLCHAIN=stable
53
export CARGO_TARGET_DIR=target
54
cargo build --release --all-features
55
}
56
57
# check() {
58
# cd "${srcdir}/${pkgname}/"
59
60
# export RUSTUP_TOOLCHAIN=stable
61
# cargo test --all-features
62
# }
63
64
package() {
65
cd "${srcdir}/${pkgname%-rs-git}/"
66
67
export RUSTUP_TOOLCHAIN=stable
68
install -Dm0644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
69
install -Dm0644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
70
install -Dm0755 "target/release/${pkgname%-rs-git}" -t "${pkgdir}/usr/bin/"
71
install -vDm644 /dev/stdin ${pkgdir}/usr/lib/udev/rules.d/71-eigencomm.rules <<EOF
72
# This file should be copied to /etc/udev/rules.d on GNU/Linux OS and derived
73
# Add permission to all user to have complete acces to eeprom programmers
74
# EigenComm
75
SUBSYSTEM=="usb", ATTRS{idVendor}=="17d1", ATTRS{idProduct}=="0001", TAG+="uaccess"
76
EOF
77
}
78
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-10 11:20:36 | Low | 1 |