summaryrefslogtreecommitdiff
path: root/haskell/haskell-hinotify/haskell-hinotify.SlackBuild
diff options
context:
space:
mode:
authorMikko Värri <vmj@linuxbox.fi>2012-06-27 15:59:44 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-06-27 15:59:44 -0400
commit7552055b0fe313789ea677ef2b23adee98e7e41c (patch)
tree8c2514fbd6f3344e3e869e7d0e0997d0ce2b0f67 /haskell/haskell-hinotify/haskell-hinotify.SlackBuild
parent48bc28fee40969e284a934859a1cf62737db34bc (diff)
downloadslackbuilds-7552055b0fe313789ea677ef2b23adee98e7e41c.tar.gz
haskell/haskell-hinotify: Updated for version 0.3.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-hinotify/haskell-hinotify.SlackBuild')
-rw-r--r--haskell/haskell-hinotify/haskell-hinotify.SlackBuild50
1 files changed, 34 insertions, 16 deletions
diff --git a/haskell/haskell-hinotify/haskell-hinotify.SlackBuild b/haskell/haskell-hinotify/haskell-hinotify.SlackBuild
index 0374b97aea..2a37ed1cff 100644
--- a/haskell/haskell-hinotify/haskell-hinotify.SlackBuild
+++ b/haskell/haskell-hinotify/haskell-hinotify.SlackBuild
@@ -2,24 +2,39 @@
# Slackware build script for hinotify
-# Written by Mikko Värri (vmj@linuxbox.fi)
-# Modified by Andy Bailey (GooseYArd@gmail.com) for hinotify
-# Public domain.
-
-SRCNAM=hinotify
-PRGNAM=haskell-$SRCNAM
-VERSION=${VERSION:-0.3.1}
-BUILD=${BUILD:-2}
+# Copyright 2012 Mikko Värri, Finland
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=haskell-hinotify
+VERSION=${VERSION:-0.3.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM="$( echo $PRGNAM | cut -d- -f2- )"
+
GHC_VERSION=$(ghc --numeric-version)
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -60,26 +75,29 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-runghc Setup.lhs configure \
+runghc Setup configure \
--prefix=/usr \
--enable-shared \
+ --enable-library-profiling \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--libsubdir=ghc-${GHC_VERSION}/$SRCNAM-$VERSION \
--docdir=/usr/doc/$PRGNAM-$VERSION
-runghc Setup.lhs build
-runghc Setup.lhs haddock
-runghc Setup.lhs copy --destdir=$PKG
-runghc Setup.lhs register --gen-pkg-config
+runghc Setup build
+runghc Setup haddock
+runghc Setup copy --destdir=$PKG
+runghc Setup register --gen-pkg-config
PKGCONFD=/usr/lib${LIBDIRSUFFIX}/ghc-${GHC_VERSION}/package.conf.d
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 \
+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
+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
mkdir -p $PKG/install