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

Felix Yan felixonmars at gemini.archlinux.org
Fri Jan 21 00:20:29 UTC 2022


    Date: Friday, January 21, 2022 @ 00:20:28
  Author: felixonmars
Revision: 1111627

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 1111626, haskell-tls/trunk/PKGBUILD)

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

Copied: haskell-tls/repos/community-staging-x86_64/PKGBUILD (from rev 1111626, haskell-tls/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-21 00:20:28 UTC (rev 1111627)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=tls
+pkgname=haskell-tls
+pkgver=1.5.6
+pkgrel=8
+pkgdesc="TLS/SSL protocol native implementation (Server and Client)"
+url="https://github.com/vincenthz/hs-tls"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-asn1-encoding" "haskell-asn1-types" "haskell-async" "haskell-cereal"
+         "haskell-cryptonite" "haskell-data-default-class" 'haskell-hourglass' "haskell-memory"
+         "haskell-network" "haskell-x509" "haskell-x509-store" "haskell-x509-validation")
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('837d7bcca64c72d52473b49913d405408d04c85947a06474a20c385c6e63741034029e133fe4d2151616e7881c4d7f8e883d5939085ee98d1a2a89c776cb54d5')
+
+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 \
+            -f-hans -fnetwork -fcompat
+    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
+}



More information about the arch-commits mailing list