summaryrefslogtreecommitdiffstats
path: root/haskell/haskell-OpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/haskell-OpenGL')
-rw-r--r--haskell/haskell-OpenGL/haskell-OpenGL.SlackBuild21
-rw-r--r--haskell/haskell-OpenGL/haskell-OpenGL.info10
2 files changed, 22 insertions, 9 deletions
diff --git a/haskell/haskell-OpenGL/haskell-OpenGL.SlackBuild b/haskell/haskell-OpenGL/haskell-OpenGL.SlackBuild
index 06d5a22768..17a3a92c02 100644
--- a/haskell/haskell-OpenGL/haskell-OpenGL.SlackBuild
+++ b/haskell/haskell-OpenGL/haskell-OpenGL.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for haskell-OpenGL
@@ -23,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=haskell-OpenGL
-VERSION=${VERSION:-3.0.2.0}
+VERSION=${VERSION:-3.0.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$( echo $PRGNAM | cut -d- -f2- )"
@@ -40,7 +43,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -67,6 +77,7 @@ cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
+cat $CWD/1.cabal > $SRCNAM.cabal
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -90,7 +101,7 @@ 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 )
+PKGID=$( grep -E "^id: " $SRCNAM-$VERSION.conf | sed "s/[[:space:]][[:space:]]*/ /" | cut -d" " -f2 )
mkdir -p $PKG/$PKGCONFD
mv $SRCNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf
@@ -106,4 +117,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/haskell/haskell-OpenGL/haskell-OpenGL.info b/haskell/haskell-OpenGL/haskell-OpenGL.info
index ccfa658b6a..60815959b4 100644
--- a/haskell/haskell-OpenGL/haskell-OpenGL.info
+++ b/haskell/haskell-OpenGL/haskell-OpenGL.info
@@ -1,10 +1,12 @@
PRGNAM="haskell-OpenGL"
-VERSION="3.0.2.0"
+VERSION="3.0.3.0"
HOMEPAGE="https://hackage.haskell.org/package/OpenGL"
-DOWNLOAD="https://hackage.haskell.org/packages/archive/OpenGL/3.0.2.0/OpenGL-3.0.2.0.tar.gz"
-MD5SUM="37011c110e862a46dfc2b931407ced19"
+DOWNLOAD="https://hackage.haskell.org/packages/archive/OpenGL/3.0.3.0/OpenGL-3.0.3.0.tar.gz \
+ https://hackage.haskell.org/package/OpenGL-3.0.3.0/revision/1.cabal"
+MD5SUM="61fcf6ff183336315fd54f825617e633 \
+ fa1d6567f49c4b8167508d26e14a278f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="haskell-OpenGLRaw haskell-GLURaw haskell-ObjectName haskell-StateVar"
+REQUIRES="haskell-GLURaw haskell-ObjectName haskell-StateVar"
MAINTAINER="David Spencer"
EMAIL="baildon.research@googlemail.com"