Date: Wednesday, August 16, 2017 @ 16:23:57
  Author: felixonmars
Revision: 251344

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

-----------------------------------+
 community-staging-i686/PKGBUILD   |   51 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: haskell-servant/repos/community-staging-i686/PKGBUILD (from rev 251343, 
haskell-servant/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2017-08-16 16:23:57 UTC (rev 251344)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=servant
+pkgname=haskell-servant
+pkgver=0.11
+pkgrel=11
+pkgdesc="A family of combinators for defining webservices APIs"
+url="http://haskell-servant.readthedocs.org/";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-base-compat" "haskell-aeson" "haskell-attoparsec" 
"haskell-case-insensitive"
+         "haskell-http-api-data" "haskell-http-media" "haskell-http-types"
+         "haskell-natural-transformation" "haskell-mtl" "haskell-mmorph" 
"haskell-tagged"
+         "haskell-text" "haskell-string-conversions" "haskell-network-uri" 
"haskell-vault")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha256sums=('c5b3f7af140fdafd3f646dcea6720c1b3b8a376f1f19a020b200acde64846b03')
+
+prepare() {
+    sed -e 's/, http-media            >= 0.4  && < 0.7/, http-media            
>= 0.4/' \
+        -e 's/base                  >= 4.7  && < 4.10/base                  >= 
4.7/' \
+        -i ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --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"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Copied: haskell-servant/repos/community-staging-x86_64/PKGBUILD (from rev 
251343, haskell-servant/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-08-16 16:23:57 UTC (rev 251344)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=servant
+pkgname=haskell-servant
+pkgver=0.11
+pkgrel=11
+pkgdesc="A family of combinators for defining webservices APIs"
+url="http://haskell-servant.readthedocs.org/";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-base-compat" "haskell-aeson" "haskell-attoparsec" 
"haskell-case-insensitive"
+         "haskell-http-api-data" "haskell-http-media" "haskell-http-types"
+         "haskell-natural-transformation" "haskell-mtl" "haskell-mmorph" 
"haskell-tagged"
+         "haskell-text" "haskell-string-conversions" "haskell-network-uri" 
"haskell-vault")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha256sums=('c5b3f7af140fdafd3f646dcea6720c1b3b8a376f1f19a020b200acde64846b03')
+
+prepare() {
+    sed -e 's/, http-media            >= 0.4  && < 0.7/, http-media            
>= 0.4/' \
+        -e 's/base                  >= 4.7  && < 4.10/base                  >= 
4.7/' \
+        -i ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --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"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Reply via email to