diff options
Diffstat (limited to 'main/btrfs-progs/APKBUILD')
-rw-r--r-- | main/btrfs-progs/APKBUILD | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/main/btrfs-progs/APKBUILD b/main/btrfs-progs/APKBUILD index 6bd4d950b2..def9af3dbe 100644 --- a/main/btrfs-progs/APKBUILD +++ b/main/btrfs-progs/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=btrfs-progs pkgver=4.16 -pkgrel=0 +pkgrel=1 pkgdesc="BTRFS filesystem utilities" url="https://btrfs.wiki.kernel.org" arch="all" @@ -12,9 +12,10 @@ depends="" depends_dev="linux-headers" makedepends="util-linux-dev bash attr-dev acl-dev e2fsprogs-dev zlib-dev lzo-dev asciidoc xmlto $depends_dev - autoconf automake libtool" + autoconf automake libtool + python3-dev py3-setuptools" subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:completion:noarch - $pkgname-libs $pkgname-extra" + py-$pkgname:py $pkgname-libs $pkgname-extra" source="https://www.kernel.org/pub/linux/kernel/people/kdave/$pkgname/$pkgname-v$pkgver.tar.xz includes.patch musl-compat.patch @@ -38,14 +39,13 @@ build() { --mandir=/usr/share/man \ --localstatedir=/var \ --disable-backtrace \ - --disable-zstd \ - --disable-python + --disable-zstd make } package() { cd "$builddir" - make -j1 DESTDIR="$pkgdir" install + make -j1 DESTDIR="$pkgdir" install install_python mkdir "$pkgdir"/sbin local i; for i in btrfs btrfsck fsck.btrfs mkfs.btrfs; do @@ -62,6 +62,14 @@ completion() { "$subpkgdir"/usr/share/bash-completion/completions/btrfs } +py() { + cd "$builddir" + pkgdesc="Python bindings for $pkgname" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + extra() { depends="$pkgname" pkgdesc="BTRFS filesystem extra utilities" |