summaryrefslogtreecommitdiff
path: root/haskell/haskell-texmath/haskell-texmath.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/haskell-texmath/haskell-texmath.SlackBuild')
-rw-r--r--haskell/haskell-texmath/haskell-texmath.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/haskell/haskell-texmath/haskell-texmath.SlackBuild b/haskell/haskell-texmath/haskell-texmath.SlackBuild
index cf3d1299c7..953ae667b8 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