system/fish: Added to 12.0 repository

This commit is contained in:
Pierre Cazenave 2010-05-11 20:01:58 +02:00 committed by Robby Workman
parent c3626a392f
commit a50a71b73c
5 changed files with 124 additions and 0 deletions

14
system/fish/README Normal file
View File

@ -0,0 +1,14 @@
fish (Friendly Interactive SHell) is a user friendly command line shell
for UNIX-like operating systems.
Post installation, fish outputs the following message regarding setting up
fish as your primary shell:
To run fish, type 'fish' in your terminal.
To use fish as your login shell:
* add the line '/usr/bin/fish' to the file '/etc/shells'.
* use the command 'chsh -s /usr/bin/fish'.
This package will potentially conflict with the /usr/games/fish binary
from the y/bsdgames package. In a stock installation with default PATH
ordering, /usr/bin should be checked before /usr/games, so it shouldn't
be an issue, but we thought it was worth noting just in case.

15
system/fish/doinst.sh Normal file
View File

@ -0,0 +1,15 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/fish/config.fish.new

View File

@ -0,0 +1,68 @@
#!/bin/sh
# Slackware build script for the fish shell
# Pierre Cazenave pwcazenave@gmail.com
PRGNAM=fish
VERSION=1.23.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make
make install DESTDIR=$PKG
# Let's not clobber the config
mv $PKG/etc/fish/config.fish $PKG/etc/fish/config.fish.new
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/fish $PKG/usr/doc/$PRGNAM-$VERSION
cp -a INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rmdir $PKG/usr/share/doc
( cd $PKG/usr/doc ; ln -s $PRGNAN-$VERSION $PRGNAM )
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

8
system/fish/fish.info Normal file
View File

@ -0,0 +1,8 @@
PRGNAM="fish"
VERSION="1.23.0"
HOMEPAGE="http://fishshell.org/"
DOWNLOAD="http://fishshell.org/files/1.23.0/fish-1.23.0.tar.bz2"
MD5SUM="aa2f09bb54652b16bf4f7708848a7416"
MAINTAINER="Pierre Cazenave"
EMAIL="pwcazenave@gmail.com"
APPROVED="rworkman"

19
system/fish/slack-desc Normal file
View File

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler--------------------------------------------------------|
fish: fish (Friendly Interactive SHell)
fish:
fish: fish is a user friendly command line shell for UNIX-like systems.
fish:
fish: fish includes case insensitive completions, a multiline editing
fish: system, a new and simplified key binding system, and a large number
fish: of command specific completions.
fish:
fish: http://fishshell.org/
fish:
fish: