diffs
LOW
maintainer Dominiquini
1 votes
scanned 2026-09-15 03:18:22.296490
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}
6
pkgname=${_appname}
7
pkgdesc="Fast, beautiful diffs in a single local binary"
8
9
pkgver=0.5.1
10
pkgrel=1
11
_gitversion=v${pkgver}
12
13
arch=('x86_64' 'aarch64')
14
15
_ghurl="https://github.com/${_gitauthor}/${_gitname}"
16
_ghurlraw="https://raw.githubusercontent.com/${_gitauthor}/${_gitname}/${_gitversion}"
17
url=${_ghurl}
18
19
license=('Apache-2.0')
20
21
provides=("${_appname}")
22
23
makedepends=('cargo' 'pnpm')
24
depends=('glibc' 'libgcc' 'zlib')
25
26
options=('!lto' '!strip')
27
28
source=("${_appname}-${pkgver}.tgz::${_ghurl}/archive/${_gitversion}.tar.gz")
29
sha256sums=('9aff2d45b1c9a0d999e205b3a86564bd14f5541fb6e485dd61ac34e4cb32312c')
30
31
32
prepare() {
33
cd "${pkgname}-cli-${pkgver}"
34
35
cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
36
}
37
38
build() {
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
53
check() {
54
cd "${pkgname}-cli-${pkgver}"
55
56
export CARGO_TARGET_DIR=target
57
cargo test --frozen --release
58
}
59
60
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-15 03:18:22 | Low | 1 |