[arch-commits] Commit in haskell-hopenpgp/repos (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Nov 21 13:16:20 UTC 2021


    Date: Sunday, November 21, 2021 @ 13:16:20
  Author: felixonmars
Revision: 1052968

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-hopenpgp/repos/community-staging-x86_64/
  haskell-hopenpgp/repos/community-staging-x86_64/PKGBUILD
    (from rev 1052967, haskell-hopenpgp/trunk/PKGBUILD)
  haskell-hopenpgp/repos/community-staging-x86_64/ghc9.patch
    (from rev 1052967, haskell-hopenpgp/trunk/ghc9.patch)
  haskell-hopenpgp/repos/community-staging-x86_64/hashable-1.3.4.patch
    (from rev 1052967, haskell-hopenpgp/trunk/hashable-1.3.4.patch)

----------------------+
 PKGBUILD             |   55 +++++++++++++++++++++++++++++++++++++++++++++++++
 ghc9.patch           |   13 +++++++++++
 hashable-1.3.4.patch |   23 ++++++++++++++++++++
 3 files changed, 91 insertions(+)

Copied: haskell-hopenpgp/repos/community-staging-x86_64/PKGBUILD (from rev 1052967, haskell-hopenpgp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-21 13:16:20 UTC (rev 1052968)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=hOpenPGP
+pkgname=haskell-hopenpgp
+pkgver=2.9.5
+pkgrel=194
+pkgdesc="Native Haskell implementation of OpenPGP (RFC4880)"
+url="http://floss.scru.org/hOpenPGP/"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-asn1-encoding' 'haskell-attoparsec'
+         'haskell-base16-bytestring' 'haskell-bifunctors' 'haskell-bz2' 'haskell-binary-conduit'
+         'haskell-conduit' 'haskell-conduit-extra' 'haskell-cryptonite'
+         'haskell-crypto-cipher-types' 'haskell-errors' 'haskell-hashable'
+         'haskell-incremental-parser' 'haskell-ixset-typed' 'haskell-lens' 'haskell-memory'
+         'haskell-monad-loops' 'haskell-nettle' 'haskell-network-uri'
+         'haskell-openpgp-asciiarmor' 'haskell-prettyprinter' 'haskell-resourcet' 'haskell-split'
+         'haskell-time-locale-compat' 'haskell-unliftio-core' 'haskell-unordered-containers'
+         'haskell-zlib')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+        ghc9.patch
+        hashable-1.3.4.patch)
+sha512sums=('7e0ecc73054c5315093e7f64f92bc7c62a7f9ff1b2c985595db427a063460b3fc692343079676631987c9a651212d1d739289f9b1e2ecb1c086b2c9bd5a4ba0e'
+            '9a1cf92845c1120b006b39f31496af5badfc42eb460794d3bcf8ba393eb63e7989c1c3934179fd96b9b0a23d87b078412662ebbba0d7278240eba7fe0d48ce8e'
+            '71a712dc52d7d26896da4869a499e2eb6d2943f3848c374047f57241dbe200765a8cef809854f7b66bbf948f6f89839793ded3a8aa827b40920c818ba09d70bb')
+
+prepare() {
+    patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+    patch -d $_hkgname-$pkgver -p1 < hashable-1.3.4.patch
+}
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+            -fnetwork-uri
+    runhaskell Setup build $MAKEFLAGS
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd $_hkgname-$pkgver
+    
+    install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+    install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+    runhaskell Setup copy --destdir="$pkgdir"
+    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-hopenpgp/repos/community-staging-x86_64/ghc9.patch (from rev 1052967, haskell-hopenpgp/trunk/ghc9.patch)
===================================================================
--- community-staging-x86_64/ghc9.patch	                        (rev 0)
+++ community-staging-x86_64/ghc9.patch	2021-11-21 13:16:20 UTC (rev 1052968)
@@ -0,0 +1,13 @@
+diff --git a/Codec/Encryption/OpenPGP/Types/Internal/Base.hs b/Codec/Encryption/OpenPGP/Types/Internal/Base.hs
+index 861b7a5..f3dcc4a 100644
+--- a/Codec/Encryption/OpenPGP/Types/Internal/Base.hs
++++ b/Codec/Encryption/OpenPGP/Types/Internal/Base.hs
+@@ -1003,7 +1003,8 @@ instance Pretty SigSubPacket where
+ 
+ instance Hashable SigSubPacket
+ 
+-$(ATH.deriveJSON ATH.defaultOptions ''SigSubPacket)
++instance A.ToJSON SigSubPacket
++instance A.FromJSON SigSubPacket
+ 
+ $(makeLenses ''SigSubPacket)

Copied: haskell-hopenpgp/repos/community-staging-x86_64/hashable-1.3.4.patch (from rev 1052967, haskell-hopenpgp/trunk/hashable-1.3.4.patch)
===================================================================
--- community-staging-x86_64/hashable-1.3.4.patch	                        (rev 0)
+++ community-staging-x86_64/hashable-1.3.4.patch	2021-11-21 13:16:20 UTC (rev 1052968)
@@ -0,0 +1,23 @@
+diff --git a/Codec/Encryption/OpenPGP/Types/Internal/Base.hs b/Codec/Encryption/OpenPGP/Types/Internal/Base.hs
+index f3dcc4a..e72b5a2 100644
+--- a/Codec/Encryption/OpenPGP/Types/Internal/Base.hs
++++ b/Codec/Encryption/OpenPGP/Types/Internal/Base.hs
+@@ -2,6 +2,7 @@
+ -- Copyright © 2012-2018  Clint Adams
+ -- This software is released under the terms of the Expat license.
+ -- (See the LICENSE file).
++{-# LANGUAGE CPP #-}
+ {-# LANGUAGE DataKinds #-}
+ {-# LANGUAGE DeriveDataTypeable #-}
+ {-# LANGUAGE DeriveGeneric #-}
+@@ -671,8 +672,10 @@ instance FutureFlag FeatureFlag where
+ 
+ instance Hashable FeatureFlag
+ 
++#if !MIN_VERSION_hashable(1,3,4)
+ instance Hashable a => Hashable (Set a) where
+   hashWithSalt salt = hashWithSalt salt . Set.toList
++#endif
+ 
+ instance Pretty FeatureFlag where
+   pretty ModificationDetection = pretty "modification-detection"



More information about the arch-commits mailing list