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

Felix Yan felixonmars at archlinux.org
Sat Mar 10 08:53:24 UTC 2018


    Date: Saturday, March 10, 2018 @ 08:53:23
  Author: felixonmars
Revision: 305796

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-wai-websockets/repos/community-staging-x86_64/
  haskell-wai-websockets/repos/community-staging-x86_64/PKGBUILD
    (from rev 305795, haskell-wai-websockets/trunk/PKGBUILD)

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

Copied: haskell-wai-websockets/repos/community-staging-x86_64/PKGBUILD (from rev 305795, haskell-wai-websockets/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-03-10 08:53:23 UTC (rev 305796)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=wai-websockets
+pkgname=haskell-wai-websockets
+pkgver=3.0.1.1
+pkgrel=56
+pkgdesc="Provide a bridge between WAI and the websockets package."
+url="https://github.com/yesodweb/wai"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-blaze-builder" "haskell-case-insensitive" "haskell-http-types"
+         "haskell-network" "haskell-wai" "haskell-websockets")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0948084dfe99ab95b4be71a94211069009b9c12d7fa4bdda1a28f9f8f7a14244d0248fcdf6090dc9b6e916ee135d28bc44adc1361224659259c761e9eed5417f')
+
+build() {
+    cd "${srcdir}/${_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 \
+            -f-example
+    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
+}
+
+package() {
+    cd "${srcdir}/${_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