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

Felix Yan felixonmars at archlinux.org
Thu Oct 19 03:35:05 UTC 2017


    Date: Thursday, October 19, 2017 @ 03:35:04
  Author: felixonmars
Revision: 263393

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-jose/repos/community-staging-i686/
  haskell-jose/repos/community-staging-i686/PKGBUILD
    (from rev 263392, haskell-jose/trunk/PKGBUILD)
  haskell-jose/repos/community-staging-x86_64/
  haskell-jose/repos/community-staging-x86_64/PKGBUILD
    (from rev 263392, haskell-jose/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   44 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

Copied: haskell-jose/repos/community-staging-i686/PKGBUILD (from rev 263392, haskell-jose/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-10-19 03:35:04 UTC (rev 263393)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=jose
+pkgname=haskell-jose
+pkgver=0.6.0.3
+pkgrel=6
+pkgdesc="Javascript Object Signing and Encryption and JSON Web Token library"
+url="https://github.com/frasertweedale/hs-jose"
+license=("Apache")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base64-bytestring' 'haskell-concise'
+         'haskell-cryptonite' 'haskell-lens' 'haskell-memory' 'haskell-monad-time' 'haskell-mtl'
+         'haskell-semigroups' 'haskell-safe' 'haskell-aeson' 'haskell-unordered-containers'
+         'haskell-text' 'haskell-network-uri' 'haskell-quickcheck' 'haskell-quickcheck-instances'
+         'haskell-x509' 'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7ea81c0d3571debbf18409c9f77cb1528df611ca4b7186f705158edea9b6b8e348d5f6d5fd2acfcd00063011b053bb2bfa43086177f21ef7300af5d5c7e6b45c')
+
+build() {
+    cd "${srcdir}/${_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
+    runhaskell Setup build
+    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 "${srcdir}/${_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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    mv "$pkgdir"/usr/bin/{,jose-}example
+}

Copied: haskell-jose/repos/community-staging-x86_64/PKGBUILD (from rev 263392, haskell-jose/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-10-19 03:35:04 UTC (rev 263393)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=jose
+pkgname=haskell-jose
+pkgver=0.6.0.3
+pkgrel=6
+pkgdesc="Javascript Object Signing and Encryption and JSON Web Token library"
+url="https://github.com/frasertweedale/hs-jose"
+license=("Apache")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base64-bytestring' 'haskell-concise'
+         'haskell-cryptonite' 'haskell-lens' 'haskell-memory' 'haskell-monad-time' 'haskell-mtl'
+         'haskell-semigroups' 'haskell-safe' 'haskell-aeson' 'haskell-unordered-containers'
+         'haskell-text' 'haskell-network-uri' 'haskell-quickcheck' 'haskell-quickcheck-instances'
+         'haskell-x509' 'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7ea81c0d3571debbf18409c9f77cb1528df611ca4b7186f705158edea9b6b8e348d5f6d5fd2acfcd00063011b053bb2bfa43086177f21ef7300af5d5c7e6b45c')
+
+build() {
+    cd "${srcdir}/${_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
+    runhaskell Setup build
+    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 "${srcdir}/${_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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    mv "$pkgdir"/usr/bin/{,jose-}example
+}



More information about the arch-commits mailing list