summaryrefslogtreecommitdiff
path: root/community/fish
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/fish
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/fish')
-rw-r--r--community/fish/PKGBUILD37
-rw-r--r--community/fish/fish.install11
2 files changed, 48 insertions, 0 deletions
diff --git a/community/fish/PKGBUILD b/community/fish/PKGBUILD
new file mode 100644
index 000000000..dbd808f40
--- /dev/null
+++ b/community/fish/PKGBUILD
@@ -0,0 +1,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')
+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 {} \;
+}
diff --git a/community/fish/fish.install b/community/fish/fish.install
new file mode 100644
index 000000000..49a65ad82
--- /dev/null
+++ b/community/fish/fish.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -q '/usr/bin/fish' etc/shells || echo '/usr/bin/fish' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -i '/^\/usr\/bin\/fish/d' /etc/shells
+}