pantry/projects/github.com/kdave/btrfs-progs/package.yml
Andrew e8f42a72b2
+github.com/kdave/btrfs-progs (#5356)
* new file:   projects/github.com/kdave/btrfs-progs/package.yml
	new file:   projects/github.com/kdave/btrfs-progs/patch.diff

* modified:   projects/github.com/kdave/btrfs-progs/package.yml
2024-02-24 15:32:43 -05:00

60 lines
1.4 KiB
YAML

distributable:
url: https://github.com/kdave/btrfs-progs/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: kdave/btrfs-progs
platforms:
- linux
dependencies:
python.org: ~3.11
sourceforge.net/e2fsprogs: ^1.47
oberhumer.com/lzo: ^2.10
systemd.io: ^255 # for libudev
github.com/util-linux/util-linux: ^2.39
zlib.net: ^1.3
facebook.com/zstd: ^1.5
runtime:
env:
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH
build:
dependencies:
sphinx-doc.org: '*'
gnu.org/autoconf: '*'
gnu.org/automake: '*'
gnu.org/libtool: '*'
script:
- patch -p1 < props/patch.diff # remove sphinx-rtd-theme extension for html docs
- ./autogen.sh
- ./configure $ARGS
- make --jobs {{hw.concurrency}} install V=1 udevdir={{prefix}}/lib/udev
- python -m pip install --prefix={{prefix}} ./libbtrfsutil/python
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix={{prefix}}
- --libdir={{prefix}}/lib
provides:
- bin/btrfs
- bin/btrfsck
- bin/btrfs-convert
- bin/btrfs-find-root
- bin/btrfs-image
- bin/btrfs-map-logical
- bin/btrfs-select-super
- bin/btrfstune
- bin/fsck.btrfs
- bin/mkfs.btrfs
test:
- btrfs --version | grep {{version}}
- truncate -s 128M test.img
- mkfs.btrfs test.img | grep '128.00MiB'
- btrfs filesystem show test.img | grep 'Total devices 1 FS'
- python -c 'import btrfsutil'