ectool-rs-git

LOW
maintainer taotieren 0 votes scanned 2026-09-10 11:20:36.259518
View on AUR
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
3pkgname=ectool-rs-git
4pkgver=0.2.0.r1.g1fe3353
5pkgrel=1
6pkgdesc="Reusable flashing and UniLog tools for EigenComm cellular chips"
7arch=($CARCH)
8url="https://github.com/yuzhan-tech/ectool"
9license=('MIT')
10provides=(${pkgname%-rs-git})
11conflicts=(${pkgname%-rs-git})
12replaces=()
13depends=(
14 glibc
15 libgcc_s.so
16 systemd-libs
17)
18makedepends=(
19 git
20 rust
21 pkgconf
22)
23optdepends=(
24 "luatos-tools: A CLI for building, flashing, and debugging LuatOS firmware on EC618 / EC7xx modules"
25)
26backup=()
27options=('!lto')
28install=
29source=("${pkgname%-rs-git}::git+${url}.git")
30sha256sums=('SKIP')
31
32pkgver() {
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
41prepare() {
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
49build() {
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
64package() {
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
75SUBSYSTEM=="usb", ATTRS{idVendor}=="17d1", ATTRS{idProduct}=="0001", TAG+="uaccess"
76EOF
77}
78

Scan history

Scanned at (UTC)SeverityRules
2026-09-10 11:20:36 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion