lyfy

LOW
maintainer partanskiy 0 votes scanned 2026-10-28 13:50:29.593976
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: Ilya Partanskiy <partanskiy.im@gmail.com>
2# shellcheck disable=SC2034,SC2154
3# makepkg consumes package metadata and supplies srcdir/pkgdir.
4pkgname=lyfy
5pkgver=0.1.1
6pkgrel=1
7pkgdesc='Declarative system maintenance and Git-backed host state for Arch Linux'
8arch=('x86_64')
9url="https://github.com/partanskiy/$pkgname"
10license=('MIT')
11depends=('glibc' 'libgcc' 'git' 'pacman' 'systemd')
12makedepends=('cargo')
13options=('!debug')
14source=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/$pkgname-v$pkgver-source.tar.gz")
15sha256sums=('cbbfa3fab01f170c2c0adeb8e235b9e8ec0f569b5d46b07d1e3cf68f897b8035')
16
17prepare() {
18 cd "$srcdir/$pkgname-$pkgver" || return
19 export RUSTUP_TOOLCHAIN=stable
20 cargo fetch --locked --target x86_64-unknown-linux-gnu
21}
22
23build() {
24 cd "$srcdir/$pkgname-$pkgver" || return
25 export RUSTUP_TOOLCHAIN=stable
26 export CARGO_TARGET_DIR=target
27 export LYFY_BUILD_VERSION="$pkgver"
28 cargo build --frozen --release --target x86_64-unknown-linux-gnu --bin "$pkgname"
29}
30
31check() {
32 cd "$srcdir/$pkgname-$pkgver" || return
33 export RUSTUP_TOOLCHAIN=stable
34 export CARGO_TARGET_DIR=target
35 export LYFY_BUILD_VERSION="$pkgver"
36 cargo test --frozen --target x86_64-unknown-linux-gnu --all-features
37 test "$("target/x86_64-unknown-linux-gnu/release/$pkgname" --version)" = "$pkgname $pkgver"
38}
39
40package() {
41 cd "$srcdir/$pkgname-$pkgver" || return
42 install -Dm755 "target/x86_64-unknown-linux-gnu/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
43 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
44 install -Dm644 THIRD_PARTY_LICENSES.txt "$pkgdir/usr/share/licenses/$pkgname/THIRD_PARTY_LICENSES.txt"
45 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
46 install -Dm644 ARCHITECTURE.md "$pkgdir/usr/share/doc/$pkgname/ARCHITECTURE.md"
47 install -Dm644 examples/config.toml "$pkgdir/usr/share/doc/$pkgname/config.example.toml"
48 install -Dm644 "docs/man/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
49 install -Dm644 "docs/man/$pkgname.conf.5" "$pkgdir/usr/share/man/man5/$pkgname.conf.5"
50 for document in configuration rules storage; do
51 install -Dm644 "docs/$document.md" "$pkgdir/usr/share/doc/$pkgname/$document.md"
52 done
53}
54

Scan history

Scanned at (UTC)SeverityRules
2026-10-28 13:50:29 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