diffs

LOW
maintainer Dominiquini 1 votes scanned 2026-09-15 03:18:22.296490
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: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
2
3_gitauthor=imfing
4_gitname=diffs-cli
5_appname=${_gitname%-cli}
6pkgname=${_appname}
7pkgdesc="Fast, beautiful diffs in a single local binary"
8
9pkgver=0.5.1
10pkgrel=1
11_gitversion=v${pkgver}
12
13arch=('x86_64' 'aarch64')
14
15_ghurl="https://github.com/${_gitauthor}/${_gitname}"
16_ghurlraw="https://raw.githubusercontent.com/${_gitauthor}/${_gitname}/${_gitversion}"
17url=${_ghurl}
18
19license=('Apache-2.0')
20
21provides=("${_appname}")
22
23makedepends=('cargo' 'pnpm')
24depends=('glibc' 'libgcc' 'zlib')
25
26options=('!lto' '!strip')
27
28source=("${_appname}-${pkgver}.tgz::${_ghurl}/archive/${_gitversion}.tar.gz")
29sha256sums=('9aff2d45b1c9a0d999e205b3a86564bd14f5541fb6e485dd61ac34e4cb32312c')
30
31
32prepare() {
33 cd "${pkgname}-cli-${pkgver}"
34
35 cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
36}
37
38build() {
39 cd "${pkgname}-cli-${pkgver}"
40
41 cd "web"
42 export PNPM_HOME="$srcdir/.pnpm-home"
43 export PATH="$PNPM_HOME:$PATH"
44
45 pnpm install --frozen-lockfile # Installs exact dependencies from pnpm-lock.yaml
46 pnpm run build # Generates the required 'dist/' folder for RustEmbed
47 cd ..
48
49 export CARGO_TARGET_DIR=target
50 RUSTFLAGS="$RUSTFLAGS -C opt-level=3 -C target-cpu=native" cargo build --frozen --release
51}
52
53check() {
54 cd "${pkgname}-cli-${pkgver}"
55
56 export CARGO_TARGET_DIR=target
57 cargo test --frozen --release
58}
59
60package() {
61 cd "${pkgname}-cli-${pkgver}"
62
63 install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
64
65 install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
66
67 install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
68}
69

Scan history

Scanned at (UTC)SeverityRules
2026-09-15 03:18:22 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