Date: Tuesday, March 6, 2018 @ 15:47:30
  Author: felixonmars
Revision: 303114

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-servant-server/repos/community-staging-x86_64/
  haskell-servant-server/repos/community-staging-x86_64/PKGBUILD
    (from rev 303113, haskell-servant-server/trunk/PKGBUILD)

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

Copied: haskell-servant-server/repos/community-staging-x86_64/PKGBUILD (from 
rev 303113, haskell-servant-server/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-06 15:47:30 UTC (rev 303114)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=servant-server
+pkgname=haskell-servant-server
+pkgver=0.12
+pkgrel=64
+pkgdesc="A family of combinators for defining webservices APIs and serving 
them"
+url="http://haskell-servant.readthedocs.org/";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-base-compat" "haskell-aeson" "haskell-attoparsec"
+         "haskell-base64-bytestring" "haskell-exceptions" 
"haskell-http-api-data"
+         "haskell-http-types" "haskell-network-uri" "haskell-monad-control" 
"haskell-mtl"
+         "haskell-network" "haskell-safe" "haskell-servant" "haskell-split"
+         "haskell-string-conversions" "haskell-system-filepath" 
"haskell-resourcet" "haskell-tagged"
+         "haskell-text" "haskell-transformers-base" 
"haskell-transformers-compat" "haskell-wai"
+         "haskell-wai-app-static" "haskell-warp" "haskell-word8")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('322fa0ebec88870d5d6e254ef27031b26d2c96dbcd6ec29e99dd2449abf95174471b1719034fb22077e4ba3f6a5bf7b2b50c535ba87e9f371f446399145f02cc')
+
+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
+    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"
+}

Reply via email to