summaryrefslogtreecommitdiff
path: root/community-testing
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-28 00:02:21 +0000
committerroot <root@rshg054.dnsready.net>2012-07-28 00:02:21 +0000
commita5c2e73ba30c769148056635676165a4265eac83 (patch)
treee9a7043a5fc46bc7021cfb8503fc9245bbee4057 /community-testing
parent2c30604c9ff749660a4b8507eec99e679cf19508 (diff)
Sat Jul 28 00:02:21 UTC 2012
Diffstat (limited to 'community-testing')
-rw-r--r--community-testing/fish/PKGBUILD36
-rw-r--r--community-testing/fish/fish.install11
2 files changed, 47 insertions, 0 deletions
diff --git a/community-testing/fish/PKGBUILD b/community-testing/fish/PKGBUILD
new file mode 100644
index 000000000..b79fe66e6
--- /dev/null
+++ b/community-testing/fish/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 74385 2012-07-26 06:57:15Z 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=1
+pkgdesc='Smart and user friendly shell intended mostly for interactive use'
+arch=('i686' 'x86_64')
+url='http://ridiculousfish.com/shell/'
+license=('GPL2')
+depends=('python')
+makedepends=('doxygen')
+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
+}
diff --git a/community-testing/fish/fish.install b/community-testing/fish/fish.install
new file mode 100644
index 000000000..765006f95
--- /dev/null
+++ b/community-testing/fish/fish.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -q '/usr/bin/zsh' etc/shells || echo '/usr/bin/zsh' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -i '/^\/usr\/bin\/fish/d' /etc/shells
+}