sjcopy

LOW
maintainer serverjonas 0 votes scanned 2026-10-22 17:35:31.972993
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: serverjonas dev@serverjonas.de
2# Contributor: serverjonas dev@serverjonas.de
3
4pkgname=sjcopy
5pkgver=0.1.0
6pkgrel=1
7pkgdesc='Copy terminal output to named, automatically expiring stores (copy) and read it back byte-exact (paste)'
8arch=('x86_64')
9url='https://git.serverjonas.de/Serverjonas/tinyproject-monorepo'
10license=('MIT')
11depends=('gcc-libs')
12makedepends=('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"
20source=("$_repo-$pkgver::git+$url.git#commit=$_commit")
21# VCS sources are never checksummed.
22sha256sums=('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
28prepare() {
29 cd "$_projectdir"
30 export RUSTUP_TOOLCHAIN=stable
31 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
32}
33
34build() {
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
41check() {
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
48package() {
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)SeverityRules
2026-10-22 17:35:31 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