From 2dde09e03668e3b9ff770d4c2a875245af433ab9 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Tue, 6 Dec 2016 09:19:06 +0000 Subject: main/lxc: added python3 bindings --- main/lxc/APKBUILD | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'main/lxc') diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD index c5e897921f..92451e14fc 100644 --- a/main/lxc/APKBUILD +++ b/main/lxc/APKBUILD @@ -5,7 +5,7 @@ pkgname=lxc pkgver=2.0.6 _pkgver=${pkgver/_rc/.rc} -pkgrel=0 +pkgrel=1 pkgdesc="Userspace interface for the Linux kernel containment features" url="https://linuxcontainers.org/lxc/" arch="all" @@ -13,10 +13,11 @@ license="GPL" depends="gzip" depends_dev="libcap-dev" makedepends="$depends_dev lvm2 util-linux automake autoconf libtool lua5.2-dev - linux-headers bash tar docbook2x libseccomp-dev" + linux-headers bash tar docbook2x libseccomp-dev python3-dev" options="suid" subpackages="$pkgname-dev $pkgname-doc $pkgname-lvm::noarch lua5.2-lxc:_lua52 - $pkgname-download:_download:noarch $pkgname-templates::noarch $pkgname-libs" + $pkgname-download:_download:noarch $pkgname-templates::noarch $pkgname-libs + py3-$pkgname:_py3" source="https://github.com/lxc/lxc/archive/lxc-$_pkgver.tar.gz version.patch lxc.initd @@ -44,6 +45,7 @@ build() { --localstatedir=/var \ --disable-apparmor \ --enable-lua \ + --enable-python \ --with-lua-pc=lua5.2 \ --with-distro=alpine \ --disable-werror \ @@ -82,6 +84,13 @@ _lua52() { done } +_py3() { + pkgdesc="Python3 module for LXC" + depends="python3" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python3.5 "$subpkgdir"/usr/lib || return 1 +} + _download() { pkgdesc="LXC container image downloader template" depends="$pkgname gnupg tar xz" -- cgit v1.2.3