dp100-studio

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
4pkgver=0.1.0
5pkgrel=1
6pkgdesc='Control and monitor the ALIENTEK DP100 USB-C bench power supply'
7arch=('x86_64' 'aarch64')
8url='https://github.com/slastra/dp100-studio'
9# The app is GPL; the bundled dp100 command-line tool is MIT or Apache-2.0.
10license=('GPL-3.0-or-later' 'MIT OR Apache-2.0')
11depends=('gtk4' 'libadwaita' 'glib2' 'pango' 'graphene' 'libgcc' 'glibc' 'hicolor-icon-theme')
12makedepends=('cargo')
13install=dp100-studio.install
14source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
15sha256sums=('e0ab8e7ed2490ea570e0ea19cf4b28b06bbaa28310b6489b90fad777cf30885d')
16_srcdir="$pkgname-$pkgver"
17
18prepare() {
19 cd "$_srcdir"
20 export RUSTUP_TOOLCHAIN=stable
21 # --locked: Cargo.lock is committed; resolving afresh could build against
22 # different dependency versions than the ones tested.
23 cargo fetch --locked --target "$(rustc -vV | sed -n "s/^host: //p")"
24}
25
26build() {
27 cd "$_srcdir"
28 export RUSTUP_TOOLCHAIN=stable
29 export CARGO_TARGET_DIR=target
30 cargo build --frozen --release -p dp100-studio
31 # The command-line tool lives behind the protocol crate's cli feature.
32 cargo build --frozen --release -p dp100 --features cli --bin dp100
33}
34
35check() {
36 cd "$_srcdir"
37 export RUSTUP_TOOLCHAIN=stable
38 export CARGO_TARGET_DIR=target
39 # Everything but the hardware tests, which are ignored unless DP100_HIL=1.
40 cargo test --frozen --release -p dp100 --all-features
41 cargo test --frozen --release -p dp100-studio
42}
43
44package() {
45 cd "$_srcdir"
46 local id=io.github.slastra.DP100Studio
47 install -Dm755 target/release/dp100-studio -t "$pkgdir/usr/bin/"
48 install -Dm755 target/release/dp100 -t "$pkgdir/usr/bin/"
49 install -Dm644 "data/$id.desktop" -t "$pkgdir/usr/share/applications/"
50 install -Dm644 "data/$id.metainfo.xml" -t "$pkgdir/usr/share/metainfo/"
51 install -Dm644 "data/icons/hicolor/scalable/apps/$id.svg" \
52 -t "$pkgdir/usr/share/icons/hicolor/scalable/apps/"
53 install -Dm644 "data/icons/hicolor/symbolic/apps/$id-symbolic.svg" \
54 -t "$pkgdir/usr/share/icons/hicolor/symbolic/apps/"
55 # Lets the user at the active seat open the DP100's hidraw node.
56 install -Dm644 data/udev/70-dp100.rules -t "$pkgdir/usr/lib/udev/rules.d/"
57 install -Dm644 README.md docs/PROTOCOL.md -t "$pkgdir/usr/share/doc/$pkgname/"
58 install -Dm644 examples/sequences/*.toml -t "$pkgdir/usr/share/doc/$pkgname/examples/"
59 install -Dm644 crates/dp100-studio/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-GPL"
60 install -Dm644 crates/dp100/LICENSE-MIT crates/dp100/LICENSE-APACHE \
61 -t "$pkgdir/usr/share/licenses/$pkgname/"
62}
63

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