summaryrefslogtreecommitdiff
path: root/community/fish/PKGBUILD
blob: 94b9c58b4b67d881ef474694195dc10b46abcd2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 92181 2013-06-02 13:25:12Z bpiotrowski $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Maintainer:  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Jan Fader <jan.fader@web.de>

pkgname=fish
pkgver=2.0.0
pkgrel=2
pkgdesc='Smart and user friendly shell intended mostly for interactive use'
arch=('i686' 'x86_64' 'mips64el')
url='http://fishshell.com/'
license=('GPL2')
depends=('python2' 'inetutils')
makedepends=('doxygen' 'python')
install=fish.install
source=(fish-$pkgver.tar.gz::http://fishshell.com/files/$pkgver/fish.tar.gz)
md5sums=('fe5907e6af61607d4128ce891a1f6501')

build() {
  set -x
  cd fish
  autoconf
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --without-xsel
  make
}

package() {
  cd fish
  make DESTDIR="$pkgdir" install

  # use python2
  find "$pkgdir"/usr/share/fish/tools/ -type f -exec sed -e "1s|python|python2|" -i {} \;
}