mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
60 lines
1.4 KiB
YAML
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'
|