dp100-studio-git
LOW
maintainer slastra
0 votes
scanned 2026-10-17 17:19:05.078207
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
3
pkgname=dp100-studio-git
4
_pkgname=dp100-studio
5
pkgver=0.1.0.r0.gc299f33
6
pkgrel=1
7
pkgdesc='Control and monitor the ALIENTEK DP100 USB-C bench power supply (development version)'
8
arch=('x86_64' 'aarch64')
9
url='https://github.com/slastra/dp100-studio'
10
# The app is GPL; the bundled dp100 command-line tool is MIT or Apache-2.0.
11
license=('GPL-3.0-or-later' 'MIT OR Apache-2.0')
12
depends=('gtk4' 'libadwaita' 'glib2' 'pango' 'graphene' 'libgcc' 'glibc' 'hicolor-icon-theme')
13
makedepends=('cargo' 'git')
14
provides=('dp100-studio')
15
conflicts=('dp100-studio')
16
install=dp100-studio-git.install
17
source=("git+$url.git")
18
b2sums=('SKIP')
19
_srcdir="$_pkgname"
20
21
pkgver() {
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
32
prepare() {
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
40
build() {
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
49
check() {
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
58
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-17 17:19:05 | Low | 1 |