summaryrefslogtreecommitdiff
path: root/system/fish/fish.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-07-31 13:32:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-07-31 13:32:57 +0700
commitbd42c1db69c8b1c1e4d23f8e326c3d2a70781ef6 (patch)
tree839c7c91ae498c280c64e7f0b84c80d14e35eead /system/fish/fish.SlackBuild
parent1d72f44ff962a4a71266525e5e0fbd4cc4c38895 (diff)
downloadslackbuilds-bd42c1db69c8b1c1e4d23f8e326c3d2a70781ef6.tar.gz
system/fish: Updated for version 2.2.0 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/fish/fish.SlackBuild')
-rw-r--r--system/fish/fish.SlackBuild34
1 files changed, 17 insertions, 17 deletions
diff --git a/system/fish/fish.SlackBuild b/system/fish/fish.SlackBuild
index bd74a37a72..8f8efafc2a 100644
--- a/system/fish/fish.SlackBuild
+++ b/system/fish/fish.SlackBuild
@@ -1,11 +1,12 @@
#!/bin/sh
-
-# Slackware build script for the fish shell
-
+#
+# Slackware build script for the fish shell.
+#
# Updated for version 1.23.1 20/09/2009
# Updated for Slackware64 28/05/2009
-
+#
# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
+# Copyright 2015, Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,8 +27,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fish
-VERSION=1.23.1
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.2.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,14 +64,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -89,18 +90,17 @@ make install DESTDIR=$PKG
# Let's not clobber the config
mv $PKG/etc/fish/config.fish $PKG/etc/fish/config.fish.new
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( 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
-)
+mv $PKG/usr/share/$PRGNAM/man/man1/* $PKG/usr/man/man1
+rm -rf $PKG/usr/share/fish/man/
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-cp -a INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+# Remove manual pages that overwrites coreutils' man pages
+rm -f $PKG/usr/man/man1/{echo,false,pwd,test,true}.1.gz
+cp -a CONTRIBUTING.md COPYING README.md release_notes.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install