Skip to content

Commit fede44a

Browse files
dvzrvFoxboron
authored andcommitted
upgpkg: zsh-completions 0.34.0-4
now provided by the tmuxp package.
1 parent e00d51b commit fede44a

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

zsh-completions/.SRCINFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pkgbase = zsh-completions
22
pkgdesc = Additional completion definitions for Zsh
33
pkgver = 0.34.0
4-
pkgrel = 3
4+
pkgrel = 4
55
url = https://github.com/zsh-users/zsh-completions
66
changelog = ChangeLog
77
arch = any

zsh-completions/PKGBUILD

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
pkgname=zsh-completions
66
pkgver=0.34.0
7-
pkgrel=3
7+
pkgrel=4
88
pkgdesc="Additional completion definitions for Zsh"
99
arch=(any)
1010
url="https://github.com/zsh-users/zsh-completions"
@@ -16,12 +16,25 @@ b2sums=('75afed3059e889f92843099ad3eddae1f939a7d9a46d87a8048c5742b44699c2da13a9c
1616
changelog=ChangeLog
1717

1818
package() {
19+
local completion
20+
local provided_completions=(
21+
_tmuxp
22+
_trash
23+
_trash-empty
24+
_trash-list
25+
_trash-put
26+
_trash-restore
27+
_vagrant
28+
)
29+
1930
cd $pkgname-$pkgver
2031
install -vDm 644 src/* -t "$pkgdir/usr/share/zsh/site-functions/"
2132
install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
2233
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
23-
for cmpl in _vagrant _trash _trash-empty _trash-list _trash-put _trash-restore; do
24-
rm "$pkgdir/usr/share/zsh/site-functions/$cmpl"
34+
35+
# remove completions which are provided by other packages
36+
for completion in "${provided_completions[@]}"; do
37+
rm -v "$pkgdir/usr/share/zsh/site-functions/$completion"
2538
done
2639
}
2740

0 commit comments

Comments
 (0)