summaryrefslogtreecommitdiffstats
path: root/haskell/haskell-rio
diff options
context:
space:
mode:
author Andrew Clemons <andrew.clemons@gmail.com>2022-02-11 23:38:06 +1300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-13 09:18:00 +0700
commit350ddc9bfaa8f99a25896a03b9370ff583101900 (patch)
tree3629fc6457ef5ae853d469cd8ed79a429dc64d9d /haskell/haskell-rio
parent037524eb0b8e2c92bc3fe007f24691037196e7c3 (diff)
downloadslackbuilds-350ddc9bfaa8f99a25896a03b9370ff583101900.tar.gz
slackbuilds-350ddc9bfaa8f99a25896a03b9370ff583101900.tar.xz
haskell/haskell-rio: Updated for version 0.1.21.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-rio')
-rw-r--r--haskell/haskell-rio/Setup.hs2
-rw-r--r--haskell/haskell-rio/haskell-rio.SlackBuild13
-rw-r--r--haskell/haskell-rio/haskell-rio.info8
3 files changed, 13 insertions, 10 deletions
diff --git a/haskell/haskell-rio/Setup.hs b/haskell/haskell-rio/Setup.hs
deleted file mode 100644
index 9a994af677..0000000000
--- a/haskell/haskell-rio/Setup.hs
+++ /dev/null
@@ -1,2 +0,0 @@
-import Distribution.Simple
-main = defaultMain
diff --git a/haskell/haskell-rio/haskell-rio.SlackBuild b/haskell/haskell-rio/haskell-rio.SlackBuild
index d12d6a3c94..911405b7d6 100644
--- a/haskell/haskell-rio/haskell-rio.SlackBuild
+++ b/haskell/haskell-rio/haskell-rio.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=haskell-rio
-VERSION=${VERSION:-0.1.5.0}
+VERSION=${VERSION:-0.1.21.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,15 +76,20 @@ cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
+cat << EOF > Setup.hs
+module Main (main) where
+
+import Distribution.Simple
+
+main :: IO ()
+main = defaultMain
+EOF
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-cp $CWD/Setup.hs .
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
runghc Setup configure \
diff --git a/haskell/haskell-rio/haskell-rio.info b/haskell/haskell-rio/haskell-rio.info
index 1768fabd92..0f6fcecf15 100644
--- a/haskell/haskell-rio/haskell-rio.info
+++ b/haskell/haskell-rio/haskell-rio.info
@@ -1,10 +1,10 @@
PRGNAM="haskell-rio"
-VERSION="0.1.5.0"
+VERSION="0.1.21.0"
HOMEPAGE="https://hackage.haskell.org/package/rio"
-DOWNLOAD="https://hackage.haskell.org/packages/archive/rio/0.1.5.0/rio-0.1.5.0.tar.gz"
-MD5SUM="ad075d3472fde6bf28bd89c40ae02ea8"
+DOWNLOAD="https://hackage.haskell.org/packages/archive/rio/0.1.21.0/rio-0.1.21.0.tar.gz"
+MD5SUM="554a37103aee56956ab9c2a48ea15841"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="haskell-exceptions haskell-hashable haskell-microlens haskell-primitive haskell-typed-process haskell-unliftio haskell-unordered-containers haskell-vector"
+REQUIRES="haskell-exceptions haskell-hashable haskell-microlens haskell-primitive haskell-typed-process haskell-unliftio haskell-unordered-containers haskell-vector haskell-microlens-mtl"
MAINTAINER="David Spencer"
EMAIL="baildon.research@googlemail.com"