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

Felix Yan felixonmars at archlinux.org
Mon Jan 21 13:51:56 UTC 2019


    Date: Monday, January 21, 2019 @ 13:51:56
  Author: felixonmars
Revision: 426131

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-wreq/repos/community-staging-x86_64/PKGBUILD (from rev 426130, haskell-wreq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-01-21 13:51:56 UTC (rev 426131)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=wreq
+pkgname=haskell-wreq
+pkgver=0.5.3.1
+pkgrel=11
+pkgdesc="An easy-to-use HTTP client library."
+url="https://github.com/bos/wreq"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-authenticate-oauth'
+         'haskell-base16-bytestring' 'haskell-case-insensitive' 'haskell-cryptonite'
+         'haskell-exceptions' 'haskell-hashable' 'haskell-http-client' 'haskell-http-client-tls'
+         'haskell-http-types' 'haskell-lens' 'haskell-lens-aeson' 'haskell-memory'
+         'haskell-mime-types' 'haskell-psqueues' 'haskell-time-locale-compat'
+         'haskell-unordered-containers' 'haskell-aeson-pretty' 'haskell-base64-bytestring'
+         'haskell-snap-core' 'haskell-snap-server' 'haskell-unix-compat' 'haskell-uuid')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hunit' 'haskell-quickcheck'
+             'haskell-network-info' 'haskell-temporary' 'haskell-test-framework'
+             'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2' 'haskell-vector')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('1ab1a5762a760e89b3fe3f15320a85d2ec1e181a87e87cb10eac18e44439d81ee3813d2c88b311b9fb7be6986f2cad63c3b69f8119db2e7f75c88d1b781910fc')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/Form.Part/Form.PartM/' Network/Wreq/Lens/TH.hs
+}
+
+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 \
+            -fdoctest -f-aws -fhttpbin -f-developer
+    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
+}
+
+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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}



More information about the arch-commits mailing list