[arch-commits] Commit in purescript/repos (4 files)

Felix Yan felixonmars at archlinux.org
Fri Jul 7 16:45:03 UTC 2017


    Date: Friday, July 7, 2017 @ 16:45:02
  Author: felixonmars
Revision: 242872

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

Added:
  purescript/repos/community-staging-i686/
  purescript/repos/community-staging-i686/PKGBUILD
    (from rev 242871, purescript/trunk/PKGBUILD)
  purescript/repos/community-staging-x86_64/
  purescript/repos/community-staging-x86_64/PKGBUILD
    (from rev 242871, purescript/trunk/PKGBUILD)

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

Copied: purescript/repos/community-staging-i686/PKGBUILD (from rev 242871, purescript/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-07-07 16:45:02 UTC (rev 242872)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=purescript
+pkgver=0.11.5
+pkgrel=21
+pkgdesc="PureScript Programming Language Compiler"
+url="http://www.purescript.org/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-aeson" "haskell-aeson-better-errors" "haskell-aeson-pretty"
+         "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-base-compat" "haskell-blaze-html"
+         "haskell-bower-json" "haskell-boxes" "haskell-cheapskate" "haskell-clock"
+         "haskell-data-ordlist" "haskell-dlist" "haskell-edit-distance" "haskell-file-embed"
+         "haskell-fsnotify" "haskell-glob" "haskell-http-client" "haskell-http-types"
+         "haskell-language-javascript" "haskell-lens" "haskell-lifted-base" "haskell-monad-control"
+         "haskell-monad-logger" "haskell-mtl" "haskell-network" "haskell-optparse-applicative"
+         "haskell-parallel" "haskell-parsec" "haskell-pattern-arrows" "haskell-pipes"
+         "haskell-pipes-http" "haskell-protolude" "haskell-regex-tdfa" "haskell-safe"
+         "haskell-semigroups" "haskell-sourcemap" "haskell-spdx" "haskell-split" "haskell-stm"
+         "haskell-stringsearch" "haskell-syb" "haskell-text" "haskell-transformers-base"
+         "haskell-transformers-compat" "haskell-unordered-containers" "haskell-utf8-string"
+         "haskell-vector" "haskell-wai" "haskell-wai-websockets" "haskell-warp"
+         "haskell-websockets")
+optdepends=('pulp: for development environment')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('179b8ce5ac4b3839189f9eeb6244b86635dd20986654b7d1d0912c429bfabb77439097b43d73ec52f52bf24148781a0059c1afe6ccfb44b83533f4a670a3476c')
+
+prepare() {
+    sed -i 's/aeson >=1.0 && <1.1/aeson >=1.0/' ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -frelease
+    LC_CTYPE=en_US.UTF-8 runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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}/${pkgname}-${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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+    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: purescript/repos/community-staging-x86_64/PKGBUILD (from rev 242871, purescript/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-07-07 16:45:02 UTC (rev 242872)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=purescript
+pkgver=0.11.5
+pkgrel=21
+pkgdesc="PureScript Programming Language Compiler"
+url="http://www.purescript.org/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-aeson" "haskell-aeson-better-errors" "haskell-aeson-pretty"
+         "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-base-compat" "haskell-blaze-html"
+         "haskell-bower-json" "haskell-boxes" "haskell-cheapskate" "haskell-clock"
+         "haskell-data-ordlist" "haskell-dlist" "haskell-edit-distance" "haskell-file-embed"
+         "haskell-fsnotify" "haskell-glob" "haskell-http-client" "haskell-http-types"
+         "haskell-language-javascript" "haskell-lens" "haskell-lifted-base" "haskell-monad-control"
+         "haskell-monad-logger" "haskell-mtl" "haskell-network" "haskell-optparse-applicative"
+         "haskell-parallel" "haskell-parsec" "haskell-pattern-arrows" "haskell-pipes"
+         "haskell-pipes-http" "haskell-protolude" "haskell-regex-tdfa" "haskell-safe"
+         "haskell-semigroups" "haskell-sourcemap" "haskell-spdx" "haskell-split" "haskell-stm"
+         "haskell-stringsearch" "haskell-syb" "haskell-text" "haskell-transformers-base"
+         "haskell-transformers-compat" "haskell-unordered-containers" "haskell-utf8-string"
+         "haskell-vector" "haskell-wai" "haskell-wai-websockets" "haskell-warp"
+         "haskell-websockets")
+optdepends=('pulp: for development environment')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('179b8ce5ac4b3839189f9eeb6244b86635dd20986654b7d1d0912c429bfabb77439097b43d73ec52f52bf24148781a0059c1afe6ccfb44b83533f4a670a3476c')
+
+prepare() {
+    sed -i 's/aeson >=1.0 && <1.1/aeson >=1.0/' ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -frelease
+    LC_CTYPE=en_US.UTF-8 runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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}/${pkgname}-${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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+    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
+}



More information about the arch-commits mailing list