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

Felix Yan felixonmars at archlinux.org
Sat Mar 6 04:00:29 UTC 2021


    Date: Saturday, March 6, 2021 @ 04:00:28
  Author: felixonmars
Revision: 883201

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-http2/repos/community-staging-x86_64/PKGBUILD (from rev 883200, haskell-http2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-03-06 04:00:28 UTC (rev 883201)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=http2
+pkgname=haskell-http2
+pkgver=2.0.6
+pkgrel=8
+pkgdesc="HTTP/2 library"
+url="https://github.com/kazu-yamamoto/http2"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-case-insensitive' 'haskell-http-types' 'haskell-network'
+         'haskell-network-byte-order' 'haskell-psqueues' 'haskell-time-manager')
+makedepends=('ghc' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-base16-bytestring'
+             'haskell-doctest' 'haskell-glob' 'haskell-hspec' 'haskell-unordered-containers'
+             'haskell-vector')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('5bbee07c856efb76b74e7ed00e3a13c6e4e5cc8750751e5d35103f99cedbfde5bc433b0c5879bf93cfd327dee0ab61b9a58cbc5526364a0cb204ee3f560f741a')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-devel
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+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