Date: Thursday, November 18, 2021 @ 03:10:15
  Author: felixonmars
Revision: 1051729

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-network-uri/repos/community-staging-x86_64/
  haskell-network-uri/repos/community-staging-x86_64/PKGBUILD
    (from rev 1051728, haskell-network-uri/trunk/PKGBUILD)

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

Copied: haskell-network-uri/repos/community-staging-x86_64/PKGBUILD (from rev 
1051728, haskell-network-uri/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-18 03:10:15 UTC (rev 1051729)
@@ -0,0 +1,49 @@
+# Maintainer: Jelle van der Waa <je...@vdwaa.nl>
+
+_hkgname=network-uri
+pkgname=haskell-network-uri
+pkgver=2.6.4.1
+pkgrel=48
+pkgdesc="A library for client-side HTTP"
+url="https://hackage.haskell.org/package/${_hkgname}";
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-th-compat')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-hunit' 'haskell-tasty' 
'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('8e5b01fd11197ac36de9b804d37256662f904f2b94a997a2e262439bb1706d1c460db368e935bf3971fd1581162abbc07439a0bae391e1e616264bd00fe7104e')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    if (( CHECKFUNC )); then
+        _opts=('--enable-tests')
+    else
+        _opts=('--disable-tests')
+    fi
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+    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 --show-details=direct
+}
+
+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
+}

Reply via email to