diff options
author | prspkt <prspkt@protonmail.com> | 2018-04-12 16:54:01 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-04-13 05:55:03 +0000 |
commit | 34dd89cb293afc3fd76357ce1f990c5535c5395a (patch) | |
tree | 570b8ee4356e51c7831290996ad1d9d54241b855 /main/btrfs-progs/APKBUILD | |
parent | d7e0f101d2cd387ecd11f80c72ef745739237070 (diff) | |
download | aports-34dd89cb293afc3fd76357ce1f990c5535c5395a.tar.bz2 aports-34dd89cb293afc3fd76357ce1f990c5535c5395a.tar.xz |
main/btrfs-progs: add python3 bindings, python3-dev and py3-setuptools dependencies
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" |