summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-01-20 18:15:50 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-01-20 21:14:51 +0100
commit5a16094065bc022fe69d0b06c3f0d9d728a1b1fb (patch)
tree84e25706127a36ba8e7ddaaba9069b0d16ccc9a1 /testing
parent136b008eb01b1855a28e4a9344d3afd8ff08c4e4 (diff)
downloadaports-5a16094065bc022fe69d0b06c3f0d9d728a1b1fb.zip
testing/podman: add shell completion subpackages
Diffstat (limited to 'testing')
-rw-r--r--testing/podman/APKBUILD24
1 files changed, 22 insertions, 2 deletions
diff --git a/testing/podman/APKBUILD b/testing/podman/APKBUILD
index d63201dd400..039cefb9c18 100644
--- a/testing/podman/APKBUILD
+++ b/testing/podman/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=podman
pkgver=1.7.0
-pkgrel=1
+pkgrel=2
pkgdesc="Simple management tool for pods, containers, and images"
url="https://podman.io/"
options="!check" # TODO: enable tests
@@ -10,7 +10,9 @@ arch="all"
license="Apache-2.0"
depends="conmon cni-plugins"
makedepends="go gpgme-dev libseccomp-dev libassuan-dev go-md2man btrfs-progs-dev bash"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc
+ $pkgname-bash-completion:bashcomp:noarch
+ $pkgname-zsh-completion:zshcomp:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/containers/libpod/archive/v$pkgver.tar.gz
libpod-config.patch"
builddir="$srcdir/libpod-$pkgver"
@@ -26,5 +28,23 @@ package() {
PREFIX=/usr DESTDIR="$pkgdir"
}
+bashcomp() {
+ pkgdesc="Bash completions for $pkgname"
+ depends=""
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ install -Dm644 "$builddir"/completions/bash/$pkgname \
+ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname
+}
+
+zshcomp() {
+ pkgdesc="Zsh completions for $pkgname"
+ depends=""
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+
+ install -Dm644 "$builddir"/completions/zsh/_$pkgname \
+ "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
+}
+
sha512sums="986ec7123127d3ffb26cecc39a2ae3d8a6dd3d147327449fc4e9d17f6e6606bde278f13920d0aef59410262801251e7b4cfe099cb5caafe9773533e8476848fe podman-1.7.0.tar.gz
fb0997502e996ed0b1e99b11970380d4e7a61ab1aa0bf54ec925edd7defbbe2fec67f4cb28ab4a6f0de4ba770ca11c952893a35a0c71f10bd2c3d19f3c836803 libpod-config.patch"