diff options
Diffstat (limited to 'haskell')
37 files changed, 383 insertions, 101 deletions
diff --git a/haskell/cabal-install/README b/haskell/cabal-install/README new file mode 100644 index 0000000000..fd546af36a --- /dev/null +++ b/haskell/cabal-install/README @@ -0,0 +1,20 @@ +cabal-install is a tool to manage Haskell's package building. + +Cabal is a system for building and packaging Haskell libraries and +programs. It defines a common interface for package authors and +distributors to easily build their applications in a portable way. +Cabal is part of a larger infrastructure for distributing, organizing, +and cataloging Haskell libraries and programs. + +This is a binary repack. + +Although SBo provides ghc, which, in turn, +can theoretically build everything using the Setup.hs files in +package distributions, managing versions in Haskell is not trivial, +and also sematically dubious, since most Haskell libraries are static. + +Cabal is intended to remediate this issue. Each cabal-based +SlackBuild would have to carry a large number of source files, but, +in turn, would avoid having to micro-manage dependencies, and +pollute the file system with single-use static libraries. + diff --git a/haskell/cabal-install/cabal-install.SlackBuild b/haskell/cabal-install/cabal-install.SlackBuild new file mode 100644 index 0000000000..e355dcd5d1 --- /dev/null +++ b/haskell/cabal-install/cabal-install.SlackBuild @@ -0,0 +1,109 @@ +#!/bin/bash + +# Slackware build script for cabal-install + +# Copyright 2023, Lockywolf +# 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. + + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=cabal-install +VERSION=${VERSION:-3.10.1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" + SRC_SUFFIX=i386-linux-deb9 +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" + SRC_SUFFIX=i386-linux-deb9 +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + SRC_SUFFIX=x86_64-linux-ubuntu20_04 +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + printf "Unsupported architecture: ARM.\n" 1>&2 + exit 1 +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" + printf "Unsupported architecture: unknown.\n" 1>&2 + exit 2 +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-$SRC_SUFFIX.tar.xz +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 {} \; + +install -D -m755 cabal "$PKG"/opt/cabal-install/cabal +install -d -m755 "$PKG"/usr/bin + +( + cd $PKG/usr/bin + ln -sr ../../opt/cabal-install/cabal ./cabal +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + plan.json \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/haskell/cabal-install/cabal-install.info b/haskell/cabal-install/cabal-install.info new file mode 100644 index 0000000000..b597cfe098 --- /dev/null +++ b/haskell/cabal-install/cabal-install.info @@ -0,0 +1,10 @@ +PRGNAM="cabal-install" +VERSION="3.10.1.0" +HOMEPAGE="https://www.haskell.org/cabal/" +DOWNLOAD="https://downloads.haskell.org/~cabal/cabal-install-3.10.1.0/cabal-install-3.10.1.0-i386-linux-deb9.tar.xz" +MD5SUM="ad3773d50d26fc229eaaa0500f8fce72" +DOWNLOAD_x86_64="https://downloads.haskell.org/~cabal/cabal-install-3.10.1.0/cabal-install-3.10.1.0-x86_64-linux-ubuntu20_04.tar.xz" +MD5SUM_x86_64="3cb02cc60db86efbf460f639146728fe" +REQUIRES="" +MAINTAINER="Lockywolf" +EMAIL="for_sbo.cabal-install_2023-10-17@lockywolf.net" diff --git a/haskell/cabal-install/slack-desc b/haskell/cabal-install/slack-desc new file mode 100644 index 0000000000..64eed7ecb4 --- /dev/null +++ b/haskell/cabal-install/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +cabal-install: cabal-install (Common Architecture Building Applications Libraries) +cabal-install: +cabal-install: cabal-install provides a binary cabal, which is required to build +cabal-install: Haskell libraries and applications. It may be seen as a Haskell +cabal-install: equivalent of rustup, cargo, or go get. +cabal-install: +cabal-install: +cabal-install: +cabal-install: +cabal-install: +cabal-install: diff --git a/haskell/ghcup/README b/haskell/ghcup/README new file mode 100644 index 0000000000..267d0a9859 --- /dev/null +++ b/haskell/ghcup/README @@ -0,0 +1,7 @@ +GHCup makes it easy to install specific versions of GHC on GNU/Linux, +macOS (aka Darwin), FreeBSD and Windows and can also bootstrap a fresh +Haskell developer environment from scratch. It follows the UNIX +philosophy of do one thing and do it well. Similar in scope to rustup, +pyenv and jenv. + +This is a binary repack. diff --git a/haskell/ghcup/ghcup.SlackBuild b/haskell/ghcup/ghcup.SlackBuild new file mode 100644 index 0000000000..aed6ea6ec6 --- /dev/null +++ b/haskell/ghcup/ghcup.SlackBuild @@ -0,0 +1,89 @@ +#!/bin/bash + +# Slackware build script for ghcup + +# Copyright 2023, Lockywolf +# 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. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=ghcup +VERSION=${VERSION:-0.1.20.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +case "$ARCH" in + i?86) SRCARCH=i386 ;; + x86_64) SRCARCH=$ARCH ;; + *) printf "%s unsupported\n" "$ARCH" 1>&2 ; exit 1 ;; +esac + +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} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +mkdir -p $PKG/usr/bin/ +install -m 755 $CWD/$SRCARCH-linux-$PRGNAM-$VERSION $PKG/usr/bin/$SRCARCH-linux-$PRGNAM-$VERSION + +( + cd $PKG/usr/bin + ln -sr $SRCARCH-linux-$PRGNAM-$VERSION $PRGNAM +) + +chown -R root:root . +find -L $PKG/ \ + \( -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 {} \; + +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 +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/haskell/ghcup/ghcup.info b/haskell/ghcup/ghcup.info new file mode 100644 index 0000000000..644357d1ef --- /dev/null +++ b/haskell/ghcup/ghcup.info @@ -0,0 +1,10 @@ +PRGNAM="ghcup" +VERSION="0.1.20.0" +HOMEPAGE="https://www.haskell.org/ghcup/" +DOWNLOAD="https://downloads.haskell.org/~ghcup/0.1.20.0/i386-linux-ghcup-0.1.20.0" +MD5SUM="c89e96a3a348891065d9350a5b24a203" +DOWNLOAD_x86_64="https://downloads.haskell.org/~ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0" +MD5SUM_x86_64="0edabd54c4053a62fa54ec0091642ce0" +REQUIRES="" +MAINTAINER="Lockywolf" +EMAIL="for_sbo.ghcup_2023-11-27@lockywolf.net" diff --git a/haskell/ghcup/slack-desc b/haskell/ghcup/slack-desc new file mode 100644 index 0000000000..b627b7174d --- /dev/null +++ b/haskell/ghcup/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +ghcup: ghcup (Glasgow Haskell Compiler version manager) +ghcup: +ghcup: GHCup is the main installer for the general purpose language +ghcup: Haskell. +ghcup: +ghcup: ghcup allows installing different versions of GHC as a user, and +ghcup: switch them as desired. +ghcup: +ghcup: +ghcup: +ghcup: diff --git a/haskell/haskell-Diff/haskell-Diff.SlackBuild b/haskell/haskell-Diff/haskell-Diff.SlackBuild index 7bfbd3dd72..732f6c95ea 100644 --- a/haskell/haskell-Diff/haskell-Diff.SlackBuild +++ b/haskell/haskell-Diff/haskell-Diff.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-Diff -VERSION=${VERSION:-0.3.4} +VERSION=${VERSION:-0.4.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 diff --git a/haskell/haskell-Diff/haskell-Diff.info b/haskell/haskell-Diff/haskell-Diff.info index 9b90e74c46..dacc4fa7ec 100644 --- a/haskell/haskell-Diff/haskell-Diff.info +++ b/haskell/haskell-Diff/haskell-Diff.info @@ -1,10 +1,10 @@ PRGNAM="haskell-Diff" -VERSION="0.3.4" +VERSION="0.4.1" HOMEPAGE="https://hackage.haskell.org/package/Diff" -DOWNLOAD="https://hackage.haskell.org/packages/archive/Diff/0.3.4/Diff-0.3.4.tar.gz" -MD5SUM="a1806f2218e169fc6bd1c3a8ab082365" +DOWNLOAD="https://hackage.haskell.org/packages/archive/Diff/0.4.1/Diff-0.4.1.tar.gz" +MD5SUM="5212d9a7d723c02481ce9cec93d16d38" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ghc" -MAINTAINER="David Spencer" -EMAIL="baildon.research@googlemail.com" +MAINTAINER="Andrew Clemons" +EMAIL="andrew.clemons@gmail.com" diff --git a/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild b/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild index 09679e50a0..3e5ed888cc 100644 --- a/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild +++ b/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-ShellCheck # Copyright 2017-2018, 2020-2021 Andrew Clemons, Wellington New Zealand +# Copyright 2022 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-ShellCheck -VERSION=${VERSION:-0.8.0} +VERSION=${VERSION:-0.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 diff --git a/haskell/haskell-ShellCheck/haskell-ShellCheck.info b/haskell/haskell-ShellCheck/haskell-ShellCheck.info index 94441d356e..82936c15be 100644 --- a/haskell/haskell-ShellCheck/haskell-ShellCheck.info +++ b/haskell/haskell-ShellCheck/haskell-ShellCheck.info @@ -1,10 +1,10 @@ PRGNAM="haskell-ShellCheck" -VERSION="0.8.0" +VERSION="0.9.0" HOMEPAGE="https://www.shellcheck.net/" -DOWNLOAD="https://hackage.haskell.org/package/ShellCheck-0.8.0/ShellCheck-0.8.0.tar.gz" -MD5SUM="2d12124f649819f7417c715b961040b8" +DOWNLOAD="https://hackage.haskell.org/package/ShellCheck-0.9.0/ShellCheck-0.9.0.tar.gz" +MD5SUM="ac7102f45d8c88ae70b19521d5b27a52" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="haskell-aeson haskell-json haskell-QuickCheck haskell-regex-tdfa haskell-Diff" +REQUIRES="haskell-aeson haskell-json haskell-QuickCheck haskell-regex-tdfa haskell-Diff haskell-fgl" MAINTAINER="Andrew Clemons" EMAIL="andrew.clemons@gmail.com" diff --git a/haskell/haskell-emojis/haskell-emojis.SlackBuild b/haskell/haskell-emojis/haskell-emojis.SlackBuild index f71e777bff..943fea6a1d 100644 --- a/haskell/haskell-emojis/haskell-emojis.SlackBuild +++ b/haskell/haskell-emojis/haskell-emojis.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-emojis # Copyright 2021 Andrew Clemons, Wellington New Zealand +# Copyright 2024 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-emojis -VERSION=${VERSION:-0.1.2} +VERSION=${VERSION:-0.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/haskell/haskell-emojis/haskell-emojis.info b/haskell/haskell-emojis/haskell-emojis.info index 92190e5318..6002bfc4a1 100644 --- a/haskell/haskell-emojis/haskell-emojis.info +++ b/haskell/haskell-emojis/haskell-emojis.info @@ -1,8 +1,8 @@ PRGNAM="haskell-emojis" -VERSION="0.1.2" +VERSION="0.1.3" HOMEPAGE="https://hackage.haskell.org/package/emojis" -DOWNLOAD="https://hackage.haskell.org/package/emojis-0.1.2/emojis-0.1.2.tar.gz" -MD5SUM="f9534006d0ef632a098ede0d0a18bd72" +DOWNLOAD="https://hackage.haskell.org/package/emojis-0.1.3/emojis-0.1.3.tar.gz" +MD5SUM="e79be45dcb05d5b4ba4c4bacad882214" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ghc" diff --git a/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.SlackBuild b/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.SlackBuild index fd1e976de1..ab5acc01c7 100644 --- a/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.SlackBuild +++ b/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-indexed-traversable-instances # Copyright 2021 Andrew Clemons, Wellington New Zealand +# Copyright 2024 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-indexed-traversable-instances -VERSION=${VERSION:-0.1.1} +VERSION=${VERSION:-0.1.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 diff --git a/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.info b/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.info index 66aa02aa2b..31647b378e 100644 --- a/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.info +++ b/haskell/haskell-indexed-traversable-instances/haskell-indexed-traversable-instances.info @@ -1,8 +1,8 @@ PRGNAM="haskell-indexed-traversable-instances" -VERSION="0.1.1" +VERSION="0.1.1.1" HOMEPAGE="https://hackage.haskell.org/package/indexed-traversable-instances" -DOWNLOAD="https://hackage.haskell.org/package/indexed-traversable-instances-0.1.1/indexed-traversable-instances-0.1.1.tar.gz" -MD5SUM="1e97068bf7f3568af80c82c7347c84b9" +DOWNLOAD="https://hackage.haskell.org/package/indexed-traversable-instances-0.1.1.1/indexed-traversable-instances-0.1.1.1.tar.gz" +MD5SUM="cb6a9c30e3864e20f3c95b2c21872997" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="haskell-OneTuple haskell-indexed-traversable haskell-vector" diff --git a/haskell/haskell-lukko/README b/haskell/haskell-lukko/README new file mode 100644 index 0000000000..a6308e31d9 --- /dev/null +++ b/haskell/haskell-lukko/README @@ -0,0 +1,13 @@ +lukko: File locking + +This package provides access to platform dependent file locking APIs: + +Open file descriptor locking on Linux (Lukko.OFD) +BSD-style flock(2) locks on UNIX platforms (Lukko.FLock) +Windows locking via LockFileEx (Lukko.Windows) +No-op locking, which throws exceptions (Lukko.NoOp) +Lukko module exports the best option for the target platform with +uniform API. + +After uninstalling, run this command to unregister the package from +the ghc package database: ghc-pkg recache diff --git a/haskell/haskell-mtl/doinst.sh b/haskell/haskell-lukko/doinst.sh index 3268c238bf..3268c238bf 100644 --- a/haskell/haskell-mtl/doinst.sh +++ b/haskell/haskell-lukko/doinst.sh diff --git a/haskell/haskell-lukko/douninst.sh b/haskell/haskell-lukko/douninst.sh new file mode 100644 index 0000000000..3268c238bf --- /dev/null +++ b/haskell/haskell-lukko/douninst.sh @@ -0,0 +1 @@ +chroot . /usr/bin/ghc-pkg recache diff --git a/haskell/haskell-mtl/haskell-mtl.SlackBuild b/haskell/haskell-lukko/haskell-lukko.SlackBuild index e472e46752..cc407cb138 100644 --- a/haskell/haskell-mtl/haskell-mtl.SlackBuild +++ b/haskell/haskell-lukko/haskell-lukko.SlackBuild @@ -1,8 +1,8 @@ #!/bin/bash -# Slackware build script for haskell-mtl +# Slackware build script for haskell-lukko -# Copyright 2021 Andrew Clemons, Wellington New Zealand +# Copyright 2023, Lockywolf # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +24,8 @@ cd $(dirname $0) ; CWD=$(pwd) -PRGNAM=haskell-mtl -VERSION=${VERSION:-2.2.2} +PRGNAM=haskell-lukko +VERSION=${VERSION:-0.1.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,6 +83,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Remove bogus upper version constraint on process +sed -i -E 's/(process *>= *[0-9.]+ *)\&\& *<=* *[0-9.]+/\1/' $SRCNAM.cabal + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ runghc Setup configure \ @@ -107,14 +110,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CHANGELOG.markdown LICENSE README.markdown \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md LICENSE LICENSE.GPLv2 LICENSE.GPLv3 $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/haskell/haskell-lukko/haskell-lukko.info b/haskell/haskell-lukko/haskell-lukko.info new file mode 100644 index 0000000000..2ed2cc3bb7 --- /dev/null +++ b/haskell/haskell-lukko/haskell-lukko.info @@ -0,0 +1,10 @@ +PRGNAM="haskell-lukko" +VERSION="0.1.1.3" +HOMEPAGE="https://hackage.haskell.org/package/lukko" +DOWNLOAD="https://hackage.haskell.org/packages/archive/lukko/0.1.1.3/lukko-0.1.1.3.tar.gz" +MD5SUM="ceb03f7468348c22dd1cfd67d8397f2d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="ghc" +MAINTAINER="Lockywolf" +EMAIL="for_sbo.haskell-lukko_2023-09-22@lockywolf.net" diff --git a/haskell/haskell-lukko/slack-desc b/haskell/haskell-lukko/slack-desc new file mode 100644 index 0000000000..838bef3f59 --- /dev/null +++ b/haskell/haskell-lukko/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +haskell-lukko: haskell-lukko (File locking for haskell) +haskell-lukko: +haskell-lukko: This package provides access to platform dependent file locking +haskell-lukko: APIs. +haskell-lukko: +haskell-lukko: +haskell-lukko: +haskell-lukko: +haskell-lukko: +haskell-lukko: +haskell-lukko: diff --git a/haskell/haskell-microlens-mtl/haskell-microlens-mtl.SlackBuild b/haskell/haskell-microlens-mtl/haskell-microlens-mtl.SlackBuild index 1496612b08..467c9aa907 100644 --- a/haskell/haskell-microlens-mtl/haskell-microlens-mtl.SlackBuild +++ b/haskell/haskell-microlens-mtl/haskell-microlens-mtl.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-microlens-mtl # Copyright 2021 Andrew Clemons, Wellington New Zealand +# Copyright 2023 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-microlens-mtl -VERSION=${VERSION:-0.2.0.1} +VERSION=${VERSION:-0.2.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 diff --git a/haskell/haskell-microlens-mtl/haskell-microlens-mtl.info b/haskell/haskell-microlens-mtl/haskell-microlens-mtl.info index 71639086c3..27feaa9124 100644 --- a/haskell/haskell-microlens-mtl/haskell-microlens-mtl.info +++ b/haskell/haskell-microlens-mtl/haskell-microlens-mtl.info @@ -1,8 +1,8 @@ PRGNAM="haskell-microlens-mtl" -VERSION="0.2.0.1" +VERSION="0.2.0.3" HOMEPAGE="https://hackage.haskell.org/package/microlens-mtl" -DOWNLOAD="https://hackage.haskell.org/package/microlens-mtl-0.2.0.1/microlens-mtl-0.2.0.1.tar.gz" -MD5SUM="f77074f4e886dc8e59f5e8755e158040" +DOWNLOAD="https://hackage.haskell.org/package/microlens-mtl-0.2.0.3/microlens-mtl-0.2.0.3.tar.gz" +MD5SUM="972ff6fab28b488eab22627998cdbbee" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="haskell-microlens haskell-transformers-compat" diff --git a/haskell/haskell-mtl/README b/haskell/haskell-mtl/README deleted file mode 100644 index b924210f31..0000000000 --- a/haskell/haskell-mtl/README +++ /dev/null @@ -1,4 +0,0 @@ -Monad classes, using functional dependencies - -After uninstalling, run this command to unregister the package from -the ghc package database: ghc-pkg recache diff --git a/haskell/haskell-mtl/haskell-mtl.info b/haskell/haskell-mtl/haskell-mtl.info deleted file mode 100644 index b1ee0a4c5f..0000000000 --- a/haskell/haskell-mtl/haskell-mtl.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="haskell-mtl" -VERSION="2.2.2" -HOMEPAGE="https://hackage.haskell.org/package/mtl" -DOWNLOAD="https://hackage.haskell.org/package/mtl-2.2.2/mtl-2.2.2.tar.gz" -MD5SUM="e967d70aadef91b7af3043251ff7c55f" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="ghc" -MAINTAINER="Andrew Clemons" -EMAIL="andrew.clemons@gmail.com" diff --git a/haskell/haskell-mtl/slack-desc b/haskell/haskell-mtl/slack-desc deleted file mode 100644 index 8c1824319f..0000000000 --- a/haskell/haskell-mtl/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -haskell-mtl: haskell-mtl (Monad classes, using functional dependencies) -haskell-mtl: -haskell-mtl: Monad classes using functional dependencies, with instances for -haskell-mtl: various monad transformers, inspired by the paper Functional -haskell-mtl: Programming with Overloading and Higher-Order Polymorphism, by Mark -haskell-mtl: P Jones, in Advanced School of Functional Programming, 1995. -haskell-mtl: -haskell-mtl: https://hackage.haskell.org/package/mtl -haskell-mtl: -haskell-mtl: -haskell-mtl: diff --git a/haskell/haskell-optparse-applicative/slack-desc b/haskell/haskell-optparse-applicative/slack-desc index 22efde6daf..2083656181 100644 --- a/haskell/haskell-optparse-applicative/slack-desc +++ b/haskell/haskell-optparse-applicative/slack-desc @@ -9,7 +9,7 @@ haskell-optparse-applicative: haskell-optparse-applicative (parse command line options) haskell-optparse-applicative: haskell-optparse-applicative: optparse-applicative is a haskell library for parsing options on the -haskell-optparse-applicative: command line, providing a powerful applicative interface for composing +haskell-optparse-applicative: command line, providing a powerful applicative interface for composing haskell-optparse-applicative: these options. haskell-optparse-applicative: haskell-optparse-applicative: diff --git a/haskell/haskell-text-conversions/haskell-text-conversions.SlackBuild b/haskell/haskell-text-conversions/haskell-text-conversions.SlackBuild index c9eb753e51..3a11f7e48c 100644 --- a/haskell/haskell-text-conversions/haskell-text-conversions.SlackBuild +++ b/haskell/haskell-text-conversions/haskell-text-conversions.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-text-conversions # Copyright 2021 Andrew Clemons, Wellington New Zealand +# Copyright 2024 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-text-conversions -VERSION=${VERSION:-0.3.1} +VERSION=${VERSION:-0.3.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 diff --git a/haskell/haskell-text-conversions/haskell-text-conversions.info b/haskell/haskell-text-conversions/haskell-text-conversions.info index c37fe2e779..b4f6758b6b 100644 --- a/haskell/haskell-text-conversions/haskell-text-conversions.info +++ b/haskell/haskell-text-conversions/haskell-text-conversions.info @@ -1,8 +1,8 @@ PRGNAM="haskell-text-conversions" -VERSION="0.3.1" +VERSION="0.3.1.1" HOMEPAGE="https://hackage.haskell.org/package/text-conversions" -DOWNLOAD="https://hackage.haskell.org/package/text-conversions-0.3.1/text-conversions-0.3.1.tar.gz" -MD5SUM="dd849da3b25cf5d3645949798d3b15de" +DOWNLOAD="https://hackage.haskell.org/package/text-conversions-0.3.1.1/text-conversions-0.3.1.1.tar.gz" +MD5SUM="d914d51b2b7852e14db7f8baf511a606" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="haskell-base16-bytestring haskell-base64-bytestring haskell-errors" diff --git a/haskell/haskell-th-compat/haskell-th-compat.info b/haskell/haskell-th-compat/haskell-th-compat.info index 5b30ebf4c4..f091150322 100644 --- a/haskell/haskell-th-compat/haskell-th-compat.info +++ b/haskell/haskell-th-compat/haskell-th-compat.info @@ -6,5 +6,5 @@ MD5SUM="0348e6fa3d9c25af647207122244acd9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ghc" -MAINTAINER="Andrew clemons" +MAINTAINER="Andrew Clemons" EMAIL="andrew.clemons@gmail.com" diff --git a/haskell/haskell-unicode-collation/haskell-unicode-collation.SlackBuild b/haskell/haskell-unicode-collation/haskell-unicode-collation.SlackBuild index 61d00b4b4c..474e10be5c 100644 --- a/haskell/haskell-unicode-collation/haskell-unicode-collation.SlackBuild +++ b/haskell/haskell-unicode-collation/haskell-unicode-collation.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-unicode-collation # Copyright 2022 Andrew Clemons, Wellington New Zealand +# Copyright 2023-2024 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-unicode-collation -VERSION=${VERSION:-0.1.3.1} +VERSION=${VERSION:-0.1.3.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 diff --git a/haskell/haskell-unicode-collation/haskell-unicode-collation.info b/haskell/haskell-unicode-collation/haskell-unicode-collation.info index 34643aac34..82febf8704 100644 --- a/haskell/haskell-unicode-collation/haskell-unicode-collation.info +++ b/haskell/haskell-unicode-collation/haskell-unicode-collation.info @@ -1,8 +1,8 @@ PRGNAM="haskell-unicode-collation" -VERSION="0.1.3.1" +VERSION="0.1.3.6" HOMEPAGE="https://hackage.haskell.org/package/unicode-collation" -DOWNLOAD="https://hackage.haskell.org/package/unicode-collation-0.1.3.1/unicode-collation-0.1.3.1.tar.gz" -MD5SUM="5c82cf7884069f175ff76061f96c160c" +DOWNLOAD="https://hackage.haskell.org/package/unicode-collation-0.1.3.6/unicode-collation-0.1.3.6.tar.gz" +MD5SUM="3da22229e5a005f28327564672948e2e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="haskell-th-lift-instances" diff --git a/haskell/haskell-witherable/haskell-witherable.SlackBuild b/haskell/haskell-witherable/haskell-witherable.SlackBuild index 5b1f847a03..e700e97040 100644 --- a/haskell/haskell-witherable/haskell-witherable.SlackBuild +++ b/haskell/haskell-witherable/haskell-witherable.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for haskell-witherable # Copyright 2021 Andrew Clemons, Wellington New Zealand +# Copyright 2022 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,6 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haskell-witherable VERSION=${VERSION:-0.4.2} +CABAL_REVISION=${CABAL_REVISION:-2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +44,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -76,7 +75,7 @@ cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION -cat $CWD/$SRCNAM.cabal > $SRCNAM.cabal +cat $CWD/$CABAL_REVISION.cabal > $SRCNAM.cabal chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ diff --git a/haskell/haskell-witherable/haskell-witherable.info b/haskell/haskell-witherable/haskell-witherable.info index 9798d343a1..ad0e199254 100644 --- a/haskell/haskell-witherable/haskell-witherable.info +++ b/haskell/haskell-witherable/haskell-witherable.info @@ -2,7 +2,7 @@ PRGNAM="haskell-witherable" VERSION="0.4.2" HOMEPAGE="https://hackage.haskell.org/package/witherable" DOWNLOAD="https://hackage.haskell.org/package/witherable-0.4.2/witherable-0.4.2.tar.gz \ - https://hackage.haskell.org/package/witherable-0.4.2/witherable.cabal" + https://hackage.haskell.org/package/witherable-0.4.2/revision/2.cabal" MD5SUM="c5f0d20fe135ab5fd081401080aa82f8 \ 1fec8f7279cfe870ec8d2fb7fdb7d480" DOWNLOAD_x86_64="" diff --git a/haskell/hscolour/hscolour.SlackBuild b/haskell/hscolour/hscolour.SlackBuild index 60ccc69984..f75a105fec 100644 --- a/haskell/hscolour/hscolour.SlackBuild +++ b/haskell/hscolour/hscolour.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for hscolour -# Copyright 2015-2017 Christoph Willing, Brisbane Australia +# Copyright 2015-2023 Christoph Willing, Brisbane Australia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hscolour -VERSION=${VERSION:-1.24.4} +VERSION=${VERSION:-1.25} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/haskell/hscolour/hscolour.info b/haskell/hscolour/hscolour.info index d7d90568dc..4cc66e9e48 100644 --- a/haskell/hscolour/hscolour.info +++ b/haskell/hscolour/hscolour.info @@ -1,8 +1,8 @@ PRGNAM="hscolour" -VERSION="1.24.4" +VERSION="1.25" HOMEPAGE="https://hackage.haskell.org/package/hscolour/" -DOWNLOAD="https://hackage.haskell.org/package/hscolour-1.24.4/hscolour-1.24.4.tar.gz" -MD5SUM="3b071820df13cbee7e90199e8e598007" +DOWNLOAD="https://hackage.haskell.org/package/hscolour-1.25/hscolour-1.25.tar.gz" +MD5SUM="af4992bf98c71692e92c31363a29f71f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ghc" |