updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / vfnmake-git / PKGBUILD
blob27a76db86c3cb8c846f954a8f685ad2cd0864391
1 # Maintainer: Wojciech Siewierski <darkvifon at gmail dot com>
2 # Contributor: Wojciech Siewierski <darkvifon at gmail dot com>
3 pkgname=vfnmake-git
4 pkgver=20111018
5 pkgrel=1
6 pkgdesc="User friendly Makefile generator for C/C++"
7 url="https://github.com/Vifon/vfnmake"
8 arch=('any')
9 license=('GPL')
10 depends=('perl')
11 optdepends=('nasm: Assembly support'
12   'qt: Qt4 support'
13   'zsh: argument completion')
14 makedepends=('git')
16 _gitroot="git://github.com/Vifon/vfnmake.git"
17 _gitname="vfnmake"
19 build() {
20   cd "$srcdir"
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."
26   else
27     git clone $_gitroot $_gitname --depth=1
28   fi
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
37 package() {
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