aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"