btrfs-progs-internals-release-git

LOW
maintainer Ataraxy 0 votes scanned 2026-08-31 09:44:49.557175
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: Tom Hale <tom at hale dot ee>
2# shellcheck shell=bash disable=SC2034,SC2154,SC2164 # var unused / var not assigned / cd without || exit
3# Tracks kdave/btrfs-progs release-tag cadence; builds only the unshipped
4# internal tools btrfs-sb-mod (superblock field reader/modifier with
5# checksum fixup), btrfsck (standalone original filesystem checker) and
6# btrfs-corrupt-block (deliberate corruption injector for testing).
7# Not provided by any AUR package or btrfs-progs-git (internal tools are
8# not installed by upstream 'make install').
9_repo=kdave/btrfs-progs
10pkgname=btrfs-progs-internals-release-git
11_tools=(btrfs-sb-mod btrfs-corrupt-block)
12pkgver=7.1
13pkgrel=2
14pkgdesc='Unshipped btrfs-progs internal tools: btrfs-sb-mod superblock editor with checksum fixup, btrfs-corrupt-block; latest release tag build'
15arch=('x86_64')
16url="https://github.com/${_repo}"
17license=('GPL-2.0-only')
18depends=('util-linux-libs'
19 'lzo'
20 'zlib'
21 'zstd')
22makedepends=('git')
23source=("git+https://github.com/${_repo}.git"
24 "fix-xxhash-csum-size.patch")
25b2sums=('SKIP'
26 'd275660984b47930b492eb4ce988fd777849f3be520bebe25f6e9c6ac9625c1c471f3598331eeb91be987b4c8cf956c898f492caa670a9f6ca846c03fc0d330f')
27
28pkgver() {
29 cd "${srcdir}/btrfs-progs"
30 git tag --list \
31 | grep -E '^v[0-9]+\.' \
32 | sort -V \
33 | tail -1 \
34 | sed 's/^v//'
35}
36
37prepare() {
38 cd "${srcdir}/btrfs-progs"
39 git reset --hard "v${pkgver}"
40 # fix upstream csum-size bug (#1160): sb-mod hardcoded the CRC32 digest
41 # length, truncating xxhash64/sha256/blake2b superblock checksums
42 patch -Np1 -i "${srcdir}/fix-xxhash-csum-size.patch"
43}
44
45build() {
46 cd "${srcdir}/btrfs-progs"
47 ./autogen.sh
48 ./configure \
49 --prefix=/usr \
50 --disable-documentation \
51 --disable-python \
52 --disable-convert \
53 --disable-libudev
54 make "${_tools[@]}"
55}
56
57package() {
58 cd "${srcdir}/btrfs-progs"
59 local _tool
60 for _tool in "${_tools[@]}"; do
61 install -Dm755 "${_tool}" "${pkgdir}/usr/bin/${_tool}"
62 done
63}
64
65# vim:set ts=2 sw=2 et ft=PKGBUILD:
66

Scan history

Scanned at (UTC)SeverityRules
2026-08-31 09:44:49 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