Date: Friday, October 5, 2018 @ 19:31:33
  Author: felixonmars
Revision: 390292

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 390291, haskell-servant-server/trunk/PKGBUILD)

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

Copied: haskell-servant-server/repos/community-staging-x86_64/PKGBUILD (from 
rev 390291, haskell-servant-server/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-10-05 19:31:33 UTC (rev 390292)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=servant-server
+pkgname=haskell-servant-server
+pkgver=0.13.0.1
+pkgrel=103
+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-media' 'haskell-http-types' 'haskell-network-uri' 
'haskell-monad-control'
+         'haskell-network' 'haskell-safe' 'haskell-servant' 'haskell-split'
+         'haskell-string-conversions' 'haskell-system-filepath' 
'haskell-resourcet' 'haskell-tagged'
+         'haskell-transformers-base' 'haskell-transformers-compat' 
'haskell-wai'
+         'haskell-wai-app-static' 'haskell-warp' 'haskell-word8')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hspec' 
'haskell-hspec-wai'
+             'haskell-should-not-typecheck' 'haskell-quickcheck' 
'haskell-wai-extra'
+             'haskell-temporary')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('45e6b8eb9b60efc1bfe046d3e7c93eac4a7c8f9a9f199dd13bcde16a4ba11ad63e3a31c05f056ed1e8266e45307f37982ab9723bb2721978881312521f264d1d')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i -e 's/<.*2.7/<3/' -e 's/<.*0.16/<1/' -e 's/<.*1.4/<2/' 
$_hkgname.cabal
+}
+
+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
+    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" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}

Reply via email to