testing/lxd: cosmetic changes to APKBUILD, cp rather than mv the lxc-to-lxd script

This commit is contained in:
Francesco Colista 2018-04-26 02:57:54 +00:00
parent 543d925721
commit e1cf2b64cb

View File

@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lxd
pkgver=3.0.0
pkgrel=3
pkgrel=4
pkgdesc="a container hypervisor and a new user experience for LXC"
url="https://linuxcontainers.org/lxd/"
arch="all"
@ -54,14 +54,17 @@ package() {
bashcomp() {
depends="bash"
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
mv scripts/bash/lxd-client "$subpkgdir"/usr/share/bash-completion/completions/lxd-client
cp scripts/bash/lxd-client "$subpkgdir"/usr/share/bash-completion/completions/lxd-client
}
scripts() {
pkgdesc="LXD scripts"
depends="$pkgname python3 py3-lxc"
cd "$builddir"
install -Dm755 scripts/lxc-to-lxd \
"$subpkgdir/usr/sbin/lxc-to-lxd"