summaryrefslogtreecommitdiff
path: root/community/fish/PKGBUILD
blob: c3df5c8befa45784a590ba9396f7239845512681 (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
38
39
# $Id: PKGBUILD 75266 2012-08-17 10:28:57Z 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.0b2
pkgrel=3
pkgdesc='Smart and user friendly shell intended mostly for interactive use'
arch=('i686' 'x86_64' 'mips64el')
url='http://ridiculousfish.com/shell/'
license=('GPL2')
depends=('python2')
makedepends=('doxygen' 'python')
install=fish.install
source=($pkgname-$pkgver.tar.gz::http://ridiculousfish.com/shell/files/fishfish.tar.gz)
md5sums=('ebe5fe17f6925b9142aadc8ebae5fba1')

build() {
  cd "$srcdir"/fishfish
  autoconf
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --without-xsel
  make
}

package() {
  cd "$srcdir"/fishfish
  make DESTDIR="$pkgdir" install

  # compress man pages
  find "$pkgdir"/usr/share/fish/man/ -type f | xargs gzip -9

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