From 7e97edb3ca13b9dba34626327075dc9bf356996a Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 7 Mar 2022 20:40:59 +0530 Subject: [PATCH] feat: add cabal-install package closes #8919 Signed-off-by: Aditya Alok --- packages/cabal-install/build.sh | 10 ++++++++ packages/haskell-async/build.sh | 9 +++++++ packages/haskell-base16-bytestring/build.sh | 9 +++++++ packages/haskell-base64-bytestring/build.sh | 9 +++++++ packages/haskell-cabal-syntax/build.sh | 9 +++++++ packages/haskell-cabal/build.sh | 9 +++++++ .../haskell-cabal/set-default-prefix.patch | 11 +++++++++ packages/haskell-cryptohash-sha256/build.sh | 9 +++++++ packages/haskell-echo/build.sh | 9 +++++++ packages/haskell-ed25519/build.sh | 9 +++++++ packages/haskell-edit-distance/build.sh | 9 +++++++ packages/haskell-hackage-security/build.sh | 9 +++++++ packages/haskell-hashable/build.sh | 9 +++++++ packages/haskell-http/build.sh | 9 +++++++ packages/haskell-lukko/build.sh | 9 +++++++ packages/haskell-network-uri/build.sh | 9 +++++++ packages/haskell-network/build.sh | 9 +++++++ packages/haskell-random/build.sh | 9 +++++++ packages/haskell-regex-base/build.sh | 9 +++++++ packages/haskell-regex-posix/build.sh | 9 +++++++ packages/haskell-resolv/build.sh | 9 +++++++ packages/haskell-resolv/hs_resolv.patch | 24 +++++++++++++++++++ packages/haskell-splitmix/build.sh | 9 +++++++ packages/haskell-tar/build.sh | 9 +++++++ packages/haskell-th-compat/build.sh | 9 +++++++ packages/haskell-zlib/build.sh | 9 +++++++ 26 files changed, 252 insertions(+) create mode 100644 packages/cabal-install/build.sh create mode 100644 packages/haskell-async/build.sh create mode 100644 packages/haskell-base16-bytestring/build.sh create mode 100644 packages/haskell-base64-bytestring/build.sh create mode 100644 packages/haskell-cabal-syntax/build.sh create mode 100644 packages/haskell-cabal/build.sh create mode 100644 packages/haskell-cabal/set-default-prefix.patch create mode 100644 packages/haskell-cryptohash-sha256/build.sh create mode 100644 packages/haskell-echo/build.sh create mode 100644 packages/haskell-ed25519/build.sh create mode 100644 packages/haskell-edit-distance/build.sh create mode 100644 packages/haskell-hackage-security/build.sh create mode 100644 packages/haskell-hashable/build.sh create mode 100644 packages/haskell-http/build.sh create mode 100644 packages/haskell-lukko/build.sh create mode 100644 packages/haskell-network-uri/build.sh create mode 100644 packages/haskell-network/build.sh create mode 100644 packages/haskell-random/build.sh create mode 100644 packages/haskell-regex-base/build.sh create mode 100644 packages/haskell-regex-posix/build.sh create mode 100644 packages/haskell-resolv/build.sh create mode 100644 packages/haskell-resolv/hs_resolv.patch create mode 100644 packages/haskell-splitmix/build.sh create mode 100644 packages/haskell-tar/build.sh create mode 100644 packages/haskell-th-compat/build.sh create mode 100644 packages/haskell-zlib/build.sh diff --git a/packages/cabal-install/build.sh b/packages/cabal-install/build.sh new file mode 100644 index 000000000..35315a00c --- /dev/null +++ b/packages/cabal-install/build.sh @@ -0,0 +1,10 @@ +TERMUX_PKG_HOMEPAGE="http://www.haskell.org/cabal/" +TERMUX_PKG_DESCRIPTION="The command-line interface for Cabal and Hackage." +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="3.6.2.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/cabal-install-${TERMUX_PKG_VERSION}/cabal-install-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="dcf99e1d5f1c6e569e7386312fe96e9804b3cfb2d4f17ded1e01f60149bd3036" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-edit-distance, haskell-zlib, haskell-http, haskell-network-uri, haskell-regex-base, haskell-async, haskell-lukko, haskell-cabal, haskell-resolv, haskell-echo, haskell-random, haskell-hashable, haskell-cryptohash-sha256, haskell-tar, haskell-base16-bytestring, haskell-hackage-security, haskell-regex-posix" +TERMUX_PKG_IS_HASKELL_LIB=false diff --git a/packages/haskell-async/build.sh b/packages/haskell-async/build.sh new file mode 100644 index 000000000..c0fc1ff29 --- /dev/null +++ b/packages/haskell-async/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/simonmar/async" +TERMUX_PKG_DESCRIPTION="Run IO operations asynchronously and wait for their results" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="2.2.4" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/async-${TERMUX_PKG_VERSION}/async-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="484df85be0e76c4fed9376451e48e1d0c6e97952ce79735b72d54297e7e0a725" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-hashable" diff --git a/packages/haskell-base16-bytestring/build.sh b/packages/haskell-base16-bytestring/build.sh new file mode 100644 index 000000000..c885b972d --- /dev/null +++ b/packages/haskell-base16-bytestring/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="http://github.com/haskell/base16-bytestring" +TERMUX_PKG_DESCRIPTION="RFC 4648-compliant Base16 encodings for ByteStrings" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="1.0.2.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/base16-bytestring-${TERMUX_PKG_VERSION}/base16-bytestring-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="1d5a91143ef0e22157536093ec8e59d226a68220ec89378d5dcaeea86472c784" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-base64-bytestring/build.sh b/packages/haskell-base64-bytestring/build.sh new file mode 100644 index 000000000..bd1a75af5 --- /dev/null +++ b/packages/haskell-base64-bytestring/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/haskell/base64-bytestring" +TERMUX_PKG_DESCRIPTION="Fast base64 encoding and decoding for ByteStrings" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="1.2.1.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/base64-bytestring-${TERMUX_PKG_VERSION}/base64-bytestring-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="fbf8ed30edde271eb605352021431d8f1b055f95a56af31fe2eacf6bdfdc49c9" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-cabal-syntax/build.sh b/packages/haskell-cabal-syntax/build.sh new file mode 100644 index 000000000..3356542ce --- /dev/null +++ b/packages/haskell-cabal-syntax/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="http://www.haskell.org/cabal/" +TERMUX_PKG_DESCRIPTION="A library for working with .cabal files" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="3.6.0.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/Cabal-syntax-${TERMUX_PKG_VERSION}/Cabal-syntax-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="ca25e5fc601397565fa857f1aa477740fac7f43d659e77c4d9b1485dca239251" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-cabal" diff --git a/packages/haskell-cabal/build.sh b/packages/haskell-cabal/build.sh new file mode 100644 index 000000000..7588c69b7 --- /dev/null +++ b/packages/haskell-cabal/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="http://www.haskell.org/cabal/" +TERMUX_PKG_DESCRIPTION="A framework for packaging Haskell software" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="3.6.2.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/Cabal-${TERMUX_PKG_VERSION}/Cabal-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="9e903d06a7fb0893c6f303199e737a7d555fbb5e309be8bcc782b4eb2717bc42" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-cabal/set-default-prefix.patch b/packages/haskell-cabal/set-default-prefix.patch new file mode 100644 index 000000000..979f03267 --- /dev/null +++ b/packages/haskell-cabal/set-default-prefix.patch @@ -0,0 +1,11 @@ +--- Cabal-3.6.2.0/src/Distribution/Simple/InstallDirs.hs 2001-09-09 07:16:40.000000000 +0530 ++++ Cabal-3.6.2.0-patch/src/Distribution/Simple/InstallDirs.hs 2022-02-17 23:25:55.447871965 +0530 +@@ -193,7 +193,7 @@ + else case buildOS of + Windows -> do windowsProgramFilesDir <- getWindowsProgramFilesDir + return (windowsProgramFilesDir "Haskell") +- _ -> return "/usr/local" ++ _ -> return "@TERMUX_PREFIX@" + installLibDir <- + case buildOS of + Windows -> return "$prefix" diff --git a/packages/haskell-cryptohash-sha256/build.sh b/packages/haskell-cryptohash-sha256/build.sh new file mode 100644 index 000000000..c0e117b50 --- /dev/null +++ b/packages/haskell-cryptohash-sha256/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/hvr/cryptohash-sha256" +TERMUX_PKG_DESCRIPTION="Fast, pure and practical SHA-256 implementation" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.11.102.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/cryptohash-sha256-${TERMUX_PKG_VERSION}/cryptohash-sha256-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="73a7dc7163871a80837495039a099967b11f5c4fe70a118277842f7a713c6bf6" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-echo/build.sh b/packages/haskell-echo/build.sh new file mode 100644 index 000000000..96e8a9b07 --- /dev/null +++ b/packages/haskell-echo/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/RyanGlScott/echo" +TERMUX_PKG_DESCRIPTION="A cross-platform, cross-console way to handle echoing terminal input" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.1.4" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/echo-${TERMUX_PKG_VERSION}/echo-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="c9fe1bf2904825a65b667251ec644f197b71dc5c209d2d254be5de3d496b0e43" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-ed25519/build.sh b/packages/haskell-ed25519/build.sh new file mode 100644 index 000000000..bf2f3e56c --- /dev/null +++ b/packages/haskell-ed25519/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="http://thoughtpolice.github.com/hs-ed25519" +TERMUX_PKG_DESCRIPTION="Ed25519 cryptographic signatures" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.0.5.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/ed25519-${TERMUX_PKG_VERSION}/ed25519-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="d8a5958ebfa9309790efade64275dc5c441b568645c45ceed1b0c6ff36d6156d" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-edit-distance/build.sh b/packages/haskell-edit-distance/build.sh new file mode 100644 index 000000000..fc0d76c15 --- /dev/null +++ b/packages/haskell-edit-distance/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="http://github.com/phadej/edit-distance" +TERMUX_PKG_DESCRIPTION="Levenshtein and restricted Damerau-Levenshtein edit distances" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.2.2.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/edit-distance-${TERMUX_PKG_VERSION}/edit-distance-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="3e8885ee2f56ad4da940f043ae8f981ee2fe336b5e8e4ba3f7436cff4f526c4a" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-random" diff --git a/packages/haskell-hackage-security/build.sh b/packages/haskell-hackage-security/build.sh new file mode 100644 index 000000000..4d83aa7e3 --- /dev/null +++ b/packages/haskell-hackage-security/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/haskell/hackage-security" +TERMUX_PKG_DESCRIPTION="Hackage security library" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.6.2.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/hackage-security-${TERMUX_PKG_VERSION}/hackage-security-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="bf22cd16dde7d6b7130463f4d7324b64a2964d9ef3f523df97d7cb98544d64a8" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-zlib, haskell-ed25519, haskell-network-uri, haskell-lukko, haskell-network, haskell-cabal, haskell-base64-bytestring, haskell-tar, haskell-cryptohash-sha256, haskell-base16-bytestring, haskell-cabal-syntax" diff --git a/packages/haskell-hashable/build.sh b/packages/haskell-hashable/build.sh new file mode 100644 index 000000000..85f93288c --- /dev/null +++ b/packages/haskell-hashable/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="http://github.com/haskell-unordered-containers/hashable" +TERMUX_PKG_DESCRIPTION="A class for types that can be converted to a hash value" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="1.3.5.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/hashable-${TERMUX_PKG_VERSION}/hashable-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="baaad82cd4271b197016bdbe76f22d5c3d3913fe38534cec7d817db9bae19886" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-http/build.sh b/packages/haskell-http/build.sh new file mode 100644 index 000000000..eec7e4f21 --- /dev/null +++ b/packages/haskell-http/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/haskell/HTTP" +TERMUX_PKG_DESCRIPTION="A library for client-side HTTP" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="4000.3.16" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/HTTP-${TERMUX_PKG_VERSION}/HTTP-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="d6091c037871ac3d08d021c906206174567499d5a26a6cb804cf530cd590fe2d" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-network-uri, haskell-network" diff --git a/packages/haskell-lukko/build.sh b/packages/haskell-lukko/build.sh new file mode 100644 index 000000000..e7c8ff7ab --- /dev/null +++ b/packages/haskell-lukko/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/lukko" +TERMUX_PKG_DESCRIPTION="File locking" +TERMUX_PKG_LICENSE="GPL-2.0, GPL-3.0, BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.1.1.3" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/lukko-${TERMUX_PKG_VERSION}/lukko-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="a80efb60cfa3dae18682c01980d76d5f7e413e191cd186992e1bf7388d48ab1f" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-network-uri/build.sh b/packages/haskell-network-uri/build.sh new file mode 100644 index 000000000..71481a6c7 --- /dev/null +++ b/packages/haskell-network-uri/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/haskell/network-uri" +TERMUX_PKG_DESCRIPTION="URI manipulation" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="2.6.4.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/network-uri-${TERMUX_PKG_VERSION}/network-uri-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="57856db93608a4d419f681b881c9b8d4448800d5a687587dc37e8a9e0b223584" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-th-compat" diff --git a/packages/haskell-network/build.sh b/packages/haskell-network/build.sh new file mode 100644 index 000000000..be78085a1 --- /dev/null +++ b/packages/haskell-network/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/haskell/network" +TERMUX_PKG_DESCRIPTION="Low-level networking interface" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="3.1.2.7" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/network-${TERMUX_PKG_VERSION}/network-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="7f7620fef1a1af3d3d6747f510e73223a5c600e7d7fd9ace073d1222bdc63d85" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-random/build.sh b/packages/haskell-random/build.sh new file mode 100644 index 000000000..4e9307898 --- /dev/null +++ b/packages/haskell-random/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/random" +TERMUX_PKG_DESCRIPTION="Pseudo-random number generation" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="1.2.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/random-${TERMUX_PKG_VERSION}/random-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="265c768fc5f2ca53cde6a87e706b4448cad474c3deece933c103f24453661457" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-splitmix" diff --git a/packages/haskell-regex-base/build.sh b/packages/haskell-regex-base/build.sh new file mode 100644 index 000000000..759333f7c --- /dev/null +++ b/packages/haskell-regex-base/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://wiki.haskell.org/Regular_expressions" +TERMUX_PKG_DESCRIPTION="Common "Text.Regex.*" API for Regex matching" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.94.0.2" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/regex-base-${TERMUX_PKG_VERSION}/regex-base-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="7b99408f580f5bb67a1c413e0bc735886608251331ad36322020f2169aea2ef1" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-regex-posix/build.sh b/packages/haskell-regex-posix/build.sh new file mode 100644 index 000000000..5292dac4f --- /dev/null +++ b/packages/haskell-regex-posix/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/regex-posix" +TERMUX_PKG_DESCRIPTION="POSIX Backend for "Text.Regex" (regex-base)" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.96.0.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/regex-posix-${TERMUX_PKG_VERSION}/regex-posix-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="c7827c391919227711e1cff0a762b1678fd8739f9c902fc183041ff34f59259c" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-regex-base" diff --git a/packages/haskell-resolv/build.sh b/packages/haskell-resolv/build.sh new file mode 100644 index 000000000..9d82d46c7 --- /dev/null +++ b/packages/haskell-resolv/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/resolv" +TERMUX_PKG_DESCRIPTION="Domain Name Service (DNS) lookup via the libresolv standard library routines" +TERMUX_PKG_LICENSE="GPL-2.0, GPL-3.0" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.1.2.0" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/resolv-${TERMUX_PKG_VERSION}/resolv-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="81a2bafad484db123cf8d17a02d98bb388a127fd0f822fa022589468a0e64671" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs, haskell-base16-bytestring" diff --git a/packages/haskell-resolv/hs_resolv.patch b/packages/haskell-resolv/hs_resolv.patch new file mode 100644 index 000000000..f8f760b89 --- /dev/null +++ b/packages/haskell-resolv/hs_resolv.patch @@ -0,0 +1,24 @@ +--- resolv-0.1.2.0/cbits/hs_resolv.h 2001-09-09 07:16:40.000000000 +0530 ++++ resolv-0.1.2.0-patch/cbits/hs_resolv.h 2022-02-03 20:54:49.602546255 +0530 +@@ -84,12 +84,8 @@ + { + assert(!s); + +- if (!(_res.options & RES_INIT)) { + int rc = res_init(); + if (rc) return rc; +- } +- +- _res.options |= RES_USE_DNSSEC | RES_USE_EDNS0; + + return 0; + } +@@ -112,7 +108,7 @@ + { + assert(!s); + +- return res_send(msg, msglen, answer, anslen); ++ return -1; + } + + inline static int diff --git a/packages/haskell-splitmix/build.sh b/packages/haskell-splitmix/build.sh new file mode 100644 index 000000000..91d9f9aaa --- /dev/null +++ b/packages/haskell-splitmix/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/splitmix" +TERMUX_PKG_DESCRIPTION="Fast Splittable PRNG" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.1.0.4" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/splitmix-${TERMUX_PKG_VERSION}/splitmix-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="6d065402394e7a9117093dbb4530a21342c9b1e2ec509516c8a8d0ffed98ecaa" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-tar/build.sh b/packages/haskell-tar/build.sh new file mode 100644 index 000000000..c3dc0f801 --- /dev/null +++ b/packages/haskell-tar/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/tar" +TERMUX_PKG_DESCRIPTION="Reading, writing and manipulating ".tar" archive files." +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.5.1.1" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/tar-${TERMUX_PKG_VERSION}/tar-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="b384449f62b2b0aa3e6d2cb1004b8060b01f21ec93e7b63e7af6d8fad8a9f1de" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-th-compat/build.sh b/packages/haskell-th-compat/build.sh new file mode 100644 index 000000000..bf7889dab --- /dev/null +++ b/packages/haskell-th-compat/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://github.com/haskell-compat/th-compat" +TERMUX_PKG_DESCRIPTION="Backward- (and forward-)compatible Quote and Code types" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.1.3" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/th-compat-${TERMUX_PKG_VERSION}/th-compat-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="6b5059caf6714f47da92953badf2f556119877e09708c14e206b3ae98b8681c6" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs" diff --git a/packages/haskell-zlib/build.sh b/packages/haskell-zlib/build.sh new file mode 100644 index 000000000..4618e3af8 --- /dev/null +++ b/packages/haskell-zlib/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE="https://hackage.haskell.org/package/zlib" +TERMUX_PKG_DESCRIPTION="Compression and decompression in the gzip and zlib formats" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_MAINTAINER="Aditya Alok " +TERMUX_PKG_VERSION="0.6.2.3" +TERMUX_PKG_SRCURL="https://hackage.haskell.org/package/zlib-${TERMUX_PKG_VERSION}/zlib-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256="807f6bddf9cb3c517ce5757d991dde3c7e319953a22c86ee03d74534bd5abc88" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_DEPENDS="ghc-libs"