updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / zsh-systemctl-git / PKGBUILD
blobac293529d4f013a133bd6f054f521aca58c29849
1 # Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
2 # Contributor: Michael Pusterhofer <pusterhofer (at) student (dot) tugraz (dot) at
4 pkgname=zsh-systemctl-git
5 pkgver=20110929
6 pkgrel=1
7 pkgdesc="ZSH functions to tab-complete systemctl (part of systemd) functions and services"
8 arch=('i686' 'x86_64')
9 url="https://github.com/foudfou/zsh-completion"
10 license=('GPL')
11 depends=('zsh')
12 makedepends=('git')
13 provides=('zsh-systemctl')
14 conflicts=('zsh-systemctl')
15 source=()
16 md5sums=()
18 _gitroot=git://github.com/foudfou/zsh-completion.git
19 _gitname=zsh-completion
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [[ -d "$_gitname" ]]; then
26     cd "$_gitname" && git pull origin
27     msg "The local files are updated."
28   else
29     git clone "$_gitroot" "$_gitname"
30   fi
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"
40 package() {
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: