diff options
author | David Spencer <baildon.research@googlemail.com> | 2018-10-26 10:56:33 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-11-10 07:47:10 +0700 |
commit | 40bcd945bfe7c98347d45d935fe3b93b46f1e02a (patch) | |
tree | 7c873c2dc3a23a854651cf8fdf14e6b9562e07ed /haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild | |
parent | 7091a85515cda386eb13bf9baf4ffa81938be13a (diff) |
haskell/haskell-cabal-install: Updated for version 2.2.0.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild')
-rw-r--r-- | haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild b/haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild index 4d5d972b3bab1..e330d7e8a59a4 100644 --- a/haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild +++ b/haskell/haskell-cabal-install/haskell-cabal-install.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=haskell-cabal-install -VERSION=${VERSION:-1.22.9.0} +VERSION=${VERSION:-2.2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -33,7 +33,7 @@ GHC_VERSION=$(ghc --numeric-version) if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -44,8 +44,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -90,13 +90,15 @@ runghc Setup copy --destdir=$PKG 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 +mv $PKG/usr/share/man $PKG/usr/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 + mkdir -p $PKG/usr/share/bash-completion/completions cp -a bash-completion/cabal $PKG/usr/share/bash-completion/completions/ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - changelog LICENSE README.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a changelog LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |