sjcopy
LOW
maintainer serverjonas
0 votes
scanned 2026-10-22 17:35:31.972993
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: serverjonas dev@serverjonas.de
2
# Contributor: serverjonas dev@serverjonas.de
3
4
pkgname=sjcopy
5
pkgver=0.1.0
6
pkgrel=1
7
pkgdesc='Copy terminal output to named, automatically expiring stores (copy) and read it back byte-exact (paste)'
8
arch=('x86_64')
9
url='https://git.serverjonas.de/Serverjonas/tinyproject-monorepo'
10
license=('MIT')
11
depends=('gcc-libs')
12
makedepends=('git' 'cargo')
13
14
# Upstream does not tag releases; this is a monorepo and the project lives in
15
# sjcopy/sjcopy. Pin the exact commit for reproducible builds and keep pkgver
16
# in sync with the version in sjcopy/sjcopy/Cargo.toml.
17
_repo='tinyproject-monorepo'
18
_commit='c6a3393830b320fbe72f1b63061017dd1ab1c536'
19
_projectdir="$_repo-$pkgver/sjcopy/$pkgname"
20
source=("$_repo-$pkgver::git+$url.git#commit=$_commit")
21
# VCS sources are never checksummed.
22
sha256sums=('SKIP')
23
24
# Binaries must not be installed as "copy"/"paste": "paste" collides with
25
# GNU coreutils in /usr/bin. The sj prefix matches the README's naming advice.
26
_sjbin_prefix='sj'
27
28
prepare() {
29
cd "$_projectdir"
30
export RUSTUP_TOOLCHAIN=stable
31
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
32
}
33
34
build() {
35
cd "$_projectdir"
36
export RUSTUP_TOOLCHAIN=stable
37
export CARGO_TARGET_DIR="$srcdir/target"
38
cargo build --frozen --release --target "$CARCH-unknown-linux-gnu"
39
}
40
41
check() {
42
cd "$_projectdir"
43
export RUSTUP_TOOLCHAIN=stable
44
export CARGO_TARGET_DIR="$srcdir/target"
45
cargo test --frozen --release --target "$CARCH-unknown-linux-gnu"
46
}
47
48
package() {
49
cd "$_projectdir"
50
51
install -Dm 0755 "$srcdir/target/$CARCH-unknown-linux-gnu/release/copy" \
52
"$pkgdir/usr/bin/${_sjbin_prefix}copy"
53
install -Dm 0755 "$srcdir/target/$CARCH-unknown-linux-gnu/release/paste" \
54
"$pkgdir/usr/bin/${_sjbin_prefix}paste"
55
56
# Only valid once a LICENSE file exists at the project root. With
57
# license=('MIT') and no license file, makepkg/lint will complain.
58
if [[ -f LICENSE ]]; then
59
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m 0644 LICENSE
60
fi
61
}
62
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-22 17:35:31 | Low | 1 |