summaryrefslogtreecommitdiff
path: root/community/fish
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/fish
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/fish')
-rw-r--r--community/fish/PKGBUILD33
-rw-r--r--community/fish/fish.install15
2 files changed, 48 insertions, 0 deletions
diff --git a/community/fish/PKGBUILD b/community/fish/PKGBUILD
new file mode 100644
index 000000000..6be578f71
--- /dev/null
+++ b/community/fish/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 39735 2011-02-15 21:06:59Z kchen $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
+# Contributor: Eric Belanger <eric@archlinux.org>
+# Contributor: Jan Fader <jan.fader@web.de>
+
+pkgname=fish
+pkgver=1.23.1
+pkgrel=4
+pkgdesc="User friendly shell intended mostly for interactive use"
+arch=('i686' 'x86_64')
+url="http://fishshell.com/"
+license=("GPL" "LGPL" "BSD" "MIT")
+depends=('ncurses' 'bc')
+makedepends=('doxygen')
+install=fish.install
+source=(http://fishshell.com/files/$pkgver/$pkgname-$pkgver.tar.bz2)
+md5sums=('ead6b7c6cdb21f35a3d4aa1d5fa596f1')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --docdir=/usr/share/doc/fish --without-xsel
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ install -D -m644 user_doc/html/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
+}
diff --git a/community/fish/fish.install b/community/fish/fish.install
new file mode 100644
index 000000000..c3f89cd84
--- /dev/null
+++ b/community/fish/fish.install
@@ -0,0 +1,15 @@
+post_install() {
+ if [ ! "`grep /usr/bin/fish etc/shells`" ]; then
+ echo "updating /etc/shells... done."
+ sed -i "s|/bin/bash|/bin/bash\n/usr/bin/fish|" etc/shells
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ echo -ne "updating /etc/shells... \n"
+ sed -i '/^\/usr\/bin\/fish/d' /etc/shells
+}