summaryrefslogtreecommitdiff
path: root/repo/btrfs-progs
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/btrfs-progs
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/btrfs-progs')
-rw-r--r--repo/btrfs-progs/btrfs-progs.xibuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/repo/btrfs-progs/btrfs-progs.xibuild b/repo/btrfs-progs/btrfs-progs.xibuild
new file mode 100644
index 0000000..7b80314
--- /dev/null
+++ b/repo/btrfs-progs/btrfs-progs.xibuild
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+NAME="btrfs-progs"
+DESC="BTRFS filesystem utilities"
+
+MAKEDEPS="linux-headers acl asciidoc attr autoconf automake e2fsprogs libtool lzo python util-linux xmlto zlib zstd eudev"
+
+PKG_VER=5.16.2
+SOURCE="https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$PKG_VER.tar.xz"
+
+prepare() {
+ ./autogen.sh
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-documentation \
+ --disable-backtrace
+ make
+}
+
+package() {
+ make -j1 DESTDIR="$PKG_DEST" install install_python
+
+ mkdir -p "$PKG_DEST"/usr/share/doc/btrfs-progs
+ install -m644 README.md CHANGES \
+ "$PKG_DEST"/usr/share/doc/btrfs-progs
+
+ mkdir "$PKG_DEST"/sbin
+ local i; for i in btrfs btrfsck fsck.btrfs mkfs.btrfs; do
+ mv "$PKG_DEST"/usr/bin/$i "$PKG_DEST"/sbin/
+ done
+ mv "$PKG_DEST"/usr/bin "$PKG_DEST"/usr/sbin
+
+ install -Dm644 btrfs-completion \
+ "$PKG_DEST"/usr/share/bash-completion/completions/btrfs
+}