[arch-commits] Commit in hopenpgp-tools/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Wed May 23 05:11:47 UTC 2018
Date: Wednesday, May 23, 2018 @ 05:11:47
Author: felixonmars
Revision: 327973
archrelease: copy trunk to community-staging-x86_64
Added:
hopenpgp-tools/repos/community-staging-x86_64/
hopenpgp-tools/repos/community-staging-x86_64/PKGBUILD
(from rev 327972, hopenpgp-tools/trunk/PKGBUILD)
hopenpgp-tools/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 327972, hopenpgp-tools/trunk/ghc-8.4.patch)
---------------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
ghc-8.4.patch | 17 +++++++++++++++++
2 files changed, 61 insertions(+)
Copied: hopenpgp-tools/repos/community-staging-x86_64/PKGBUILD (from rev 327972, hopenpgp-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-23 05:11:47 UTC (rev 327973)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hopenpgp-tools
+pkgver=0.21
+pkgrel=7
+pkgdesc="hOpenPGP-based command-line tools"
+url="http://floss.scru.org/hopenpgp-tools"
+license=("AGPL3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-ansi-wl-pprint' 'haskell-attoparsec'
+ 'haskell-base16-bytestring' 'haskell-binary-conduit' 'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-crypto-pubkey' 'haskell-cryptohash' 'haskell-errors'
+ 'haskell-fgl' 'haskell-graphviz' 'haskell-hopenpgp' 'haskell-http-client'
+ 'haskell-http-client-tls' 'haskell-http-types' 'haskell-ixset-typed' 'haskell-lens'
+ 'haskell-monad-loops' 'haskell-openpgp-asciiarmor' 'haskell-optparse-applicative'
+ 'haskell-prettyprinter' 'haskell-prettyprinter-ansi-terminal' 'haskell-resourcet'
+ 'haskell-time-locale-compat' 'haskell-yaml')
+makedepends=('alex' 'happy' 'ghc')
+source=(https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ ghc-8.4.patch)
+sha512sums=('bfea3b24fbf61ddf0da0b87728448d191921c662eead7f0de0383fc1c653d4a77a7c3babbfc55a5cb1ea7ef4215499654182622d7be98617c0b2f1d9d079f751'
+ '94810a884eef875fc61f8235e4fad6c1e67d267fe3edaad4968f52110ea732b8c911068cc324b92bbdb045bf7f527eb866485f7737bd876277fc3c1ce20db8f1')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --prefix=/usr --enable-executable-dynamic --docdir="/usr/share/doc/${pkgname}"
+ runhaskell Setup build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+
+ rm "$pkgdir/usr/share/doc/hopenpgp-tools/LICENSE"
+ rmdir "$pkgdir/usr/share/doc/hopenpgp-tools" "$pkgdir/usr/share/doc" "$pkgdir/usr/share"
+}
Copied: hopenpgp-tools/repos/community-staging-x86_64/ghc-8.4.patch (from rev 327972, hopenpgp-tools/trunk/ghc-8.4.patch)
===================================================================
--- community-staging-x86_64/ghc-8.4.patch (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch 2018-05-23 05:11:47 UTC (rev 327973)
@@ -0,0 +1,17 @@
+diff --git a/hokey.hs.orig b/hokey.hs
+index a78d5a2..b951fe1 100644
+--- a/hokey.hs.orig
++++ b/hokey.hs
+@@ -153,9 +153,11 @@ instance A.ToJSON b => A.ToJSON (FakeMap Text b) where
+ toJSON = A.toJSON . Map.fromList . unFakeMap
+ instance A.ToJSON RevocationStatus
+
++instance Semigroup UIDReport where
++ (<>) (UIDReport a b c d e) (UIDReport a' b' c' d' e') = UIDReport (a <> a') (b <> b') (c <> c') (d <> d') (e <> e')
++
+ instance Monoid UIDReport where
+ mempty = UIDReport [] [] [] [] []
+- mappend (UIDReport a b c d e) (UIDReport a' b' c' d' e') = UIDReport (a <> a') (b <> b') (c <> c') (d <> d') (e <> e')
+
+ checkKey :: Maybe POSIXTime -> TK -> KeyReport
+ checkKey mpt key = (\x -> x { keyBestOf = populateBestOf x, keyHasEncryptionCapableSubkey = hasEncryptionCapableSubkey (concatMap skUsageFlags (keySubkeys x)) }) KeyReport {
More information about the arch-commits
mailing list