summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/btrfs-progs/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/btrfs-progs/APKBUILD b/user/btrfs-progs/APKBUILD
new file mode 100644
index 000000000..9c1453b01
--- /dev/null
+++ b/user/btrfs-progs/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=btrfs-progs
+pkgver=4.17.1
+pkgrel=0
+pkgdesc="File system utilities for Btrfs"
+url="https://btrfs.wiki.kernel.org/index.php/Main_Page"
+arch="all"
+license="GPL-2.0-only"
+depends=""
+makedepends="asciidoctor attr-dev e2fsprogs-dev libexecinfo-dev lzo-dev
+ python3-dev util-linux-dev xmlto zlib-dev zstd-dev"
+subpackages="$pkgname-doc $pkgname-python"
+source="https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$pkgver.tar.xz"
+builddir="$srcdir"/$pkgname-v$pkgver
+
+build() {
+ cd "$builddir"
+ LIBS="-lexecinfo" ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+python() {
+ pkgdesc="$pkgdesc (Python 3 bindings)"
+
+ cd "$builddir"
+ make DESTDIR="$subpkgdir" install_python
+}
+
+sha512sums="90f291e362b640a22b41036351619e7b8a793a3b57d0537e7865edf4b830d6dc57b3051c0aed9e1ff38b602441a20fea7f974ccff789a3b4a622a0ea57756538 btrfs-progs-v4.17.1.tar.xz"