1 # Maintainer: Wojciech Siewierski <darkvifon at gmail dot com>
2 # Contributor: Wojciech Siewierski <darkvifon at gmail dot com>
6 pkgdesc="User friendly Makefile generator for C/C++"
7 url="https://github.com/Vifon/vfnmake"
11 optdepends=('nasm: Assembly support'
13 'zsh: argument completion')
16 _gitroot="git://github.com/Vifon/vfnmake.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ]; then
24 cd $_gitname && git pull origin --depth=1
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname --depth=1
30 msg "GIT checkout done or server timeout"
31 rm -rf "$srcdir/$_gitname-build"
32 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
34 make AUR_prepare || return 1
38 cd "$srcdir/$_gitname-build"
39 install -D -m 755 vfnmake_with_pod $pkgdir/usr/bin/vfnmake
40 install -D -m 644 vfnmake.1.gz $pkgdir/usr/share/man/man1/vfnmake.1.gz
41 install -D -m 644 _vfnmake $pkgdir/usr/share/zsh/site-functions/_vfnmake
42 install -D -m 644 vfnmake.conf $pkgdir/etc/vfnmake.conf