[arch-commits] Commit in haskell-tls/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Feb 28 09:12:36 UTC 2018


    Date: Wednesday, February 28, 2018 @ 09:12:35
  Author: felixonmars
Revision: 299914

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-tls/repos/community-staging-x86_64/
  haskell-tls/repos/community-staging-x86_64/PKGBUILD
    (from rev 299913, haskell-tls/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: haskell-tls/repos/community-staging-x86_64/PKGBUILD (from rev 299913, haskell-tls/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-28 09:12:35 UTC (rev 299914)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tls
+pkgname=haskell-tls
+pkgver=1.4.0
+pkgrel=30
+pkgdesc="TLS/SSL protocol native implementation (Server and Client)"
+url="https://github.com/vincenthz/hs-tls"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-asn1-encoding" "haskell-asn1-types" "haskell-async" "haskell-cereal"
+         "haskell-cryptonite" "haskell-data-default-class" "haskell-memory" "haskell-mtl"
+         "haskell-network" "haskell-x509" "haskell-x509-store" "haskell-x509-validation")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f4130b19c764f3423481b23c0d8f09540baf6cbb066045796ac28f030a3c43ac0efd342fe1ceceb0aa4d33a9cfc3b2c9d5d216e758a43a31d32a1fbee022921a')
+
+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 \
+            -f-hans -fnetwork -fcompat
+    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}"
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list