updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fish-git / PKGBUILD
blobd2dc3af974ba6d21007ceb2768a49af1df3afc2d
1 # Contributor: Abhishek Dasgupta <abhidg@gmail.com>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 # Contributor: Jan Fader <jan.fader@web.de>
4 # Contributor: SanskritFritz (gmail)
6 pkgname=fish-git
7 pkgver=20111005
8 pkgrel=1
9 pkgdesc="User friendly shell intended mostly for interactive use"
10 arch=('i686' 'x86_64')
11 url="http://gitorious.org/fish-shell"
12 license=("GPL" "LGPL" "BSD" "MIT")
13 depends=('ncurses' 'bc')
14 optdepends=('python2: make_completions script')
15 makedepends=('doxygen' 'git')
16 provides=('fish')
17 conflicts=('fish')
18 install=fish.install
19 source=()
21 _gitroot="git://gitorious.org/fish-shell/fish-shell.git"
22 _gitname="fish-shell"
24 build() {
25         cd "$srcdir"
26         msg "Connecting to the GIT repository..."
28         if [ -d "$srcdir/$_gitname" ] ; then
29                 cd $_gitname && git pull origin
30                 msg "The local files are updated."
31         else
32                 git clone $_gitroot
33         fi
35         msg "GIT checkout done (who invented that stupid 'server timeout' message?:)"
36         msg "Starting make..."
38         cd $srcdir/$_gitname
39         autoconf
40         ./configure --prefix=/usr --sysconfdir=/etc --docdir=/usr/share/doc/fish --without-xsel
41         make || return 1
42         make DESTDIR="$pkgdir" install
43         install -D -m644 user_doc/html/license.html "$pkgdir/usr/share/licenses/fish/license.html"
45         install -m755 make_completions.py "$pkgdir/usr/bin/make_completions"
46         sed -i "s/python/python2/" "$pkgdir/usr/bin/make_completions"