diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-06 09:19:06 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-06 09:19:10 +0000 |
commit | 2dde09e03668e3b9ff770d4c2a875245af433ab9 (patch) | |
tree | 96c1a462bd1b8a7662300396f919d425dea4b6cf | |
parent | b532078aec713c26c6aab58e9506ff6085d061a4 (diff) | |
download | aports-2dde09e03668e3b9ff770d4c2a875245af433ab9.tar.bz2 aports-2dde09e03668e3b9ff770d4c2a875245af433ab9.tar.xz |
main/lxc: added python3 bindings
-rw-r--r-- | main/lxc/APKBUILD | 15 |
1 files changed, 12 insertions, 3 deletions
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" |