dp100-studio-git

LOW
maintainer slastra 0 votes scanned 2026-10-17 17:19:05.078207
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: Shaun Lastra <shaun@lastra.us>
2
3pkgname=dp100-studio-git
4_pkgname=dp100-studio
5pkgver=0.1.0.r0.gc299f33
6pkgrel=1
7pkgdesc='Control and monitor the ALIENTEK DP100 USB-C bench power supply (development version)'
8arch=('x86_64' 'aarch64')
9url='https://github.com/slastra/dp100-studio'
10# The app is GPL; the bundled dp100 command-line tool is MIT or Apache-2.0.
11license=('GPL-3.0-or-later' 'MIT OR Apache-2.0')
12depends=('gtk4' 'libadwaita' 'glib2' 'pango' 'graphene' 'libgcc' 'glibc' 'hicolor-icon-theme')
13makedepends=('cargo' 'git')
14provides=('dp100-studio')
15conflicts=('dp100-studio')
16install=dp100-studio-git.install
17source=("git+$url.git")
18b2sums=('SKIP')
19_srcdir="$_pkgname"
20
21pkgver() {
22 cd "$_pkgname"
23 # The last release tag and the commits since it; before the first tag,
24 # the commit count and hash.
25 if git describe --tags >/dev/null 2>&1; then
26 git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
27 else
28 printf '0.1.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
29 fi
30}
31
32prepare() {
33 cd "$_srcdir"
34 export RUSTUP_TOOLCHAIN=stable
35 # --locked: Cargo.lock is committed; resolving afresh could build against
36 # different dependency versions than the ones tested.
37 cargo fetch --locked --target "$(rustc -vV | sed -n "s/^host: //p")"
38}
39
40build() {
41 cd "$_srcdir"
42 export RUSTUP_TOOLCHAIN=stable
43 export CARGO_TARGET_DIR=target
44 cargo build --frozen --release -p dp100-studio
45 # The command-line tool lives behind the protocol crate's cli feature.
46 cargo build --frozen --release -p dp100 --features cli --bin dp100
47}
48
49check() {
50 cd "$_srcdir"
51 export RUSTUP_TOOLCHAIN=stable
52 export CARGO_TARGET_DIR=target
53 # Everything but the hardware tests, which are ignored unless DP100_HIL=1.
54 cargo test --frozen --release -p dp100 --all-features
55 cargo test --frozen --release -p dp100-studio
56}
57
58package() {
59 cd "$_srcdir"
60 local id=io.github.slastra.DP100Studio
61 install -Dm755 target/release/dp100-studio -t "$pkgdir/usr/bin/"
62 install -Dm755 target/release/dp100 -t "$pkgdir/usr/bin/"
63 install -Dm644 "data/$id.desktop" -t "$pkgdir/usr/share/applications/"
64 install -Dm644 "data/$id.metainfo.xml" -t "$pkgdir/usr/share/metainfo/"
65 install -Dm644 "data/icons/hicolor/scalable/apps/$id.svg" \
66 -t "$pkgdir/usr/share/icons/hicolor/scalable/apps/"
67 install -Dm644 "data/icons/hicolor/symbolic/apps/$id-symbolic.svg" \
68 -t "$pkgdir/usr/share/icons/hicolor/symbolic/apps/"
69 # Lets the user at the active seat open the DP100's hidraw node.
70 install -Dm644 data/udev/70-dp100.rules -t "$pkgdir/usr/lib/udev/rules.d/"
71 install -Dm644 README.md docs/PROTOCOL.md -t "$pkgdir/usr/share/doc/$pkgname/"
72 install -Dm644 examples/sequences/*.toml -t "$pkgdir/usr/share/doc/$pkgname/examples/"
73 install -Dm644 crates/dp100-studio/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-GPL"
74 install -Dm644 crates/dp100/LICENSE-MIT crates/dp100/LICENSE-APACHE \
75 -t "$pkgdir/usr/share/licenses/$pkgname/"
76}
77

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 17:19:05 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