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

Felix Yan felixonmars at gemini.archlinux.org
Thu Jul 29 08:08:59 UTC 2021


    Date: Thursday, July 29, 2021 @ 08:08:59
  Author: felixonmars
Revision: 990058

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 990057, haskell-hopenpgp/trunk/PKGBUILD)
  haskell-hopenpgp/repos/community-staging-x86_64/ghc9.patch
    (from rev 990057, haskell-hopenpgp/trunk/ghc9.patch)

------------+
 PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 ghc9.patch |   13 +++++++++++++
 2 files changed, 65 insertions(+)

Copied: haskell-hopenpgp/repos/community-staging-x86_64/PKGBUILD (from rev 990057, haskell-hopenpgp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-07-29 08:08:59 UTC (rev 990058)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=hOpenPGP
+pkgname=haskell-hopenpgp
+pkgver=2.9.5
+pkgrel=154
+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)
+sha512sums=('7e0ecc73054c5315093e7f64f92bc7c62a7f9ff1b2c985595db427a063460b3fc692343079676631987c9a651212d1d739289f9b1e2ecb1c086b2c9bd5a4ba0e'
+            '9a1cf92845c1120b006b39f31496af5badfc42eb460794d3bcf8ba393eb63e7989c1c3934179fd96b9b0a23d87b078412662ebbba0d7278240eba7fe0d48ce8e')
+
+prepare() {
+    patch -d $_hkgname-$pkgver -p1 < ghc9.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 \
+            -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 990057, haskell-hopenpgp/trunk/ghc9.patch)
===================================================================
--- community-staging-x86_64/ghc9.patch	                        (rev 0)
+++ community-staging-x86_64/ghc9.patch	2021-07-29 08:08:59 UTC (rev 990058)
@@ -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)



More information about the arch-commits mailing list