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

Felix Yan felixonmars at archlinux.org
Thu Nov 19 11:27:15 UTC 2020


    Date: Thursday, November 19, 2020 @ 11:27:14
  Author: felixonmars
Revision: 757475

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-req/repos/community-staging-x86_64/PKGBUILD (from rev 757474, haskell-req/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-19 11:27:14 UTC (rev 757475)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=req
+pkgname=haskell-req
+pkgver=3.7.0
+pkgrel=14
+pkgdesc="Easy-to-use, type-safe, expandable, high-level HTTP client library"
+url="https://github.com/mrkkrp/req"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-authenticate-oauth' 'haskell-blaze-builder'
+         'haskell-case-insensitive' 'haskell-connection' 'haskell-http-api-data'
+         'haskell-http-client' 'haskell-http-client-tls' 'haskell-http-types' 'haskell-modern-uri'
+         'haskell-monad-control' 'haskell-retry' 'haskell-transformers-base' 'haskell-unliftio-core')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-hspec' 'haskell-hspec-core'
+             'haskell-unordered-containers')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('4212f1add864459a5b772e7b3db745f2f12539369e5a15f0c1ffd8713ed50e5740042ca7c354f00a6f67865bcde012239fa11045bfcd441d7b10d100265a371f')
+
+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 \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
+
+  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.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.md
+}



More information about the arch-commits mailing list