1 # Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
2 # Contributor: Michael Pusterhofer <pusterhofer (at) student (dot) tugraz (dot) at
4 pkgname=zsh-systemctl-git
7 pkgdesc="ZSH functions to tab-complete systemctl (part of systemd) functions and services"
9 url="https://github.com/foudfou/zsh-completion"
13 provides=('zsh-systemctl')
14 conflicts=('zsh-systemctl')
18 _gitroot=git://github.com/foudfou/zsh-completion.git
19 _gitname=zsh-completion
23 msg "Connecting to GIT server...."
25 if [[ -d "$_gitname" ]]; then
26 cd "$_gitname" && git pull origin
27 msg "The local files are updated."
29 git clone "$_gitroot" "$_gitname"
32 msg "GIT checkout done or server timeout"
33 msg "Starting build..."
35 rm -rf "$srcdir/$_gitname-build"
36 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 install -d -m755 ${pkgdir}/usr/share/zsh/site-functions/
44 install -m644 _systemctl ${pkgdir}/usr/share/zsh/site-functions/_systemctl
47 # vim:set ts=2 sw=2 et: