From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/btrfs-progs/btrfs-progs.xibuild | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 repo/btrfs-progs/btrfs-progs.xibuild (limited to 'repo/btrfs-progs/btrfs-progs.xibuild') 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 +} -- cgit v1.2.1