diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-11-30 13:54:08 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-30 13:14:05 +0000 |
commit | 5f4bd1444dd98277632ca67b84f4f74ab496413e (patch) | |
tree | 9044673effa7e046c95eafa2ecd9e8232cff8bde /main/lxc | |
parent | 8eba41963d593a9bb262d5d76c74db36474cf6ba (diff) | |
download | aports-5f4bd1444dd98277632ca67b84f4f74ab496413e.tar.bz2 aports-5f4bd1444dd98277632ca67b84f4f74ab496413e.tar.xz |
main/lxc: move bash-completion data to subpackage
Diffstat (limited to 'main/lxc')
-rw-r--r-- | main/lxc/APKBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD index a4d6b443d1..f7dc093bd4 100644 --- a/main/lxc/APKBUILD +++ b/main/lxc/APKBUILD @@ -5,7 +5,7 @@ pkgname=lxc pkgver=2.1.1 _pkgver=${pkgver/_rc/.rc} -pkgrel=1 +pkgrel=2 pkgdesc="Userspace interface for the Linux kernel containment features" url="https://linuxcontainers.org/lxc/" arch="all" @@ -17,7 +17,7 @@ makedepends="$depends_dev lvm2 util-linux automake autoconf libtool lua5.3-dev options="suid" subpackages="$pkgname-dev $pkgname-doc $pkgname-lvm::noarch lua5.3-lxc:_lua53 $pkgname-download:_download:noarch $pkgname-templates::noarch $pkgname-libs - py3-$pkgname:_py3 $pkgname-bridge" + py3-$pkgname:_py3 $pkgname-bridge::noarch $pkgname-bash-completion:bashcomp:noarch" source="https://github.com/lxc/lxc/archive/lxc-$_pkgver.tar.gz version.patch lxc.initd @@ -145,9 +145,16 @@ EOF #dhcp-host=somehost,10.0.3.3 #dhcp-host=otherhost,10.0.3.4 EOF - } +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions + mv "$pkgdir"/etc/bash_completion.d/$pkgname "$subpkgdir"/usr/share/bash-completion/completions + rmdir "$pkgdir"/etc/bash_completion.d +} sha512sums="205d30a8914013f3d31bdcae9786a13b6728ae0d3630f51c644f06e1e96d03631630569a0ce55764ff7b8ee1d1d4d723926fdb2b916396aea212d9c3040b45ab lxc-2.1.1.tar.gz e2ffcbf55447291a8434a4f37255c3a6a119bc4116c75d205006aa2b070bf6be28535cf6107bead14bbf64bf9fa415346ab544bd1c15e1add7d1c6380e6b2def version.patch |