kformat

LOW
maintainer magetriste 0 votes scanned 2026-10-24 13:40:12.894744
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: thongor77 <magetriste@proton.me>
2pkgname=kformat
3pkgver=0.1.0
4pkgrel=1
5pkgdesc="Format disks, SSDs and USB sticks simply and safely (Rust + Kirigami + udisks2)"
6arch=('x86_64')
7url="https://github.com/thongor77/kformat"
8license=('MIT')
9depends=('qt6-base' 'qt6-declarative' 'kirigami' 'udisks2' 'polkit')
10makedepends=('cargo')
11optdepends=('exfatprogs: format as exFAT'
12 'ntfs-3g: format as NTFS'
13 'f2fs-tools: format as F2FS'
14 'xfsprogs: format as XFS'
15 'btrfs-progs: format as Btrfs'
16 'dosfstools: format as FAT32'
17 'e2fsprogs: format as ext4'
18 'plasma-workspace: "Format with kformat…" action in the device notifier')
19source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
20sha256sums=('749bfd3e4092458aca85be79be04a0cff7002d1135e565cf4f1129ab03c8d468')
21
22prepare() {
23 cd "$pkgname-$pkgver"
24 export RUSTUP_TOOLCHAIN=stable
25 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
26}
27
28build() {
29 cd "$pkgname-$pkgver"
30 export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
31 # Keep the build directory out of the binary (generated C++ headers and Rust paths).
32 export CXXFLAGS="$CXXFLAGS -ffile-prefix-map=$srcdir=/build"
33 export CFLAGS="$CFLAGS -ffile-prefix-map=$srcdir=/build"
34 export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$srcdir=/build"
35 cargo build --frozen --release -p kformat-app
36}
37
38check() {
39 cd "$pkgname-$pkgver"
40 export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
41 # Unit tests only: the udisks integration tests are #[ignore]d (they need a
42 # system bus and create loop devices, so they cannot run in a build chroot).
43 cargo test --frozen --release --workspace
44}
45
46package() {
47 cd "$pkgname-$pkgver"
48 install -Dm755 target/release/kformat-app "$pkgdir/usr/bin/kformat"
49 install -Dm644 packaging/kformat.desktop "$pkgdir/usr/share/applications/kformat.desktop"
50 install -Dm644 packaging/solid/kformat-format.desktop \
51 "$pkgdir/usr/share/solid/actions/kformat-format.desktop"
52 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
53}
54

Scan history

Scanned at (UTC)SeverityRules
2026-10-24 13:40:12 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