diff options
author | Peter Wang <novalazy@gmail.com> | 2011-09-07 23:10:37 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-21 19:48:31 -0300 |
commit | 9c0d285a6e77e659181ee1d2f922da1500db855a (patch) | |
tree | a86768746644210e4e5fb290c9897fad8a83e68b /haskell/haskell-texmath/haskell-texmath.SlackBuild | |
parent | 86dd561d161d48087c426476f6161d009a63e4ed (diff) |
haskell/haskell-texmath: Updated for version 0.5.0.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-texmath/haskell-texmath.SlackBuild')
-rw-r--r-- | haskell/haskell-texmath/haskell-texmath.SlackBuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/haskell/haskell-texmath/haskell-texmath.SlackBuild b/haskell/haskell-texmath/haskell-texmath.SlackBuild index cf3d1299c7fa..953ae667b8b5 100644 --- a/haskell/haskell-texmath/haskell-texmath.SlackBuild +++ b/haskell/haskell-texmath/haskell-texmath.SlackBuild @@ -5,12 +5,13 @@ # Written by Peter Wang <novalazy@gmail.com> # Public domain. -SRCNAM=texmath -PRGNAM=haskell-$SRCNAM -VERSION=${VERSION:-0.3.0.1} +PRGNAM=haskell-texmath +VERSION=${VERSION:-0.5.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCNAM="$( echo $PRGNAM | cut -d- -f2- )" + GHC_VERSION=$(ghc --numeric-version) if [ -z "$ARCH" ]; then @@ -40,7 +41,7 @@ else LIBDIRSUFFIX="" fi -set -e # Exit on most errors +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -55,9 +56,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Remove false dependency on utf8-string (only for a sample CGI script). -patch -p1 < $CWD/texmath-utf8.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ runghc Setup.hs configure \ @@ -80,6 +78,9 @@ PKGID=$( grep -E "^id: " $SRCNAM-$VERSION.conf | cut -d" " -f2 ) mkdir -p $PKG/$PKGCONFD mv $SRCNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |