aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 03:56:27 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 03:56:27 -0300
commit64b3e721a1472a65cfb64e986513dc564e8ab5ba (patch)
tree7a41fa0b2bf7098538be58e76c0a2c21d7fae2ff
parentc983b05f54c65390392e4a56371f35d62eeb4053 (diff)
downloadaports-64b3e721a1472a65cfb64e986513dc564e8ab5ba.tar.gz
aports-64b3e721a1472a65cfb64e986513dc564e8ab5ba.tar.bz2
aports-64b3e721a1472a65cfb64e986513dc564e8ab5ba.tar.xz
community/pacman: add zsh-completion subpackage
-rw-r--r--community/pacman/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/community/pacman/APKBUILD b/community/pacman/APKBUILD
index f49fe501c9..3e79f76163 100644
--- a/community/pacman/APKBUILD
+++ b/community/pacman/APKBUILD
@@ -1,8 +1,8 @@
-# Contributor:
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=pacman
pkgver=5.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="A simple library-based package manager"
url="https://www.archlinux.org/pacman/"
arch="all"
@@ -18,6 +18,7 @@ subpackages="
$pkgname-doc
$pkgname-lang
$pkgname-bash-completion:bashcomp:noarch
+ $pkgname-zsh-completion:zshcomp:noarch
"
source="https://sources.archlinux.org/other/pacman/pacman-$pkgver.tar.gz"
@@ -54,8 +55,15 @@ bashcomp() {
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
- mkdir -p "$subpkgdir"/usr/share
- mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
+ amove usr/share/bash-completion
+}
+
+zshcomp() {
+ depends=""
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+
+ amove usr/share/zsh/site-functions
}
sha512sums="7814420b8d71090313f1bc7d9a513138bda74c5cbcb43d9741acc27ea7b4d180a38848a7d7059969cc7afed1b108d26ba2622a16d8761566357c50a5da456981 pacman-5.2.1.tar.gz"