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

Felix Yan felixonmars at archlinux.org
Wed Jun 28 15:21:00 UTC 2017


    Date: Wednesday, June 28, 2017 @ 15:21:00
  Author: felixonmars
Revision: 241367

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

Added:
  hledger-web/repos/community-staging-i686/
  hledger-web/repos/community-staging-i686/PKGBUILD
    (from rev 241366, hledger-web/trunk/PKGBUILD)
  hledger-web/repos/community-staging-x86_64/
  hledger-web/repos/community-staging-x86_64/PKGBUILD
    (from rev 241366, hledger-web/trunk/PKGBUILD)

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

Copied: hledger-web/repos/community-staging-i686/PKGBUILD (from rev 241366, hledger-web/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-06-28 15:21:00 UTC (rev 241367)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-web
+pkgver=1.2
+pkgrel=13
+pkgdesc="Web interface for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc' 'hledger' "haskell-hledger-lib" "haskell-base-compat" "haskell-blaze-html"
+         "haskell-blaze-markup" "haskell-clientsession" "haskell-cmdargs" "haskell-data-default"
+         "haskell-hjsmin" "haskell-http-conduit" "haskell-http-client" "haskell-hunit"
+         "haskell-conduit-extra" "haskell-safe" "haskell-shakespeare" "haskell-text" "haskell-wai"
+         "haskell-wai-extra" "haskell-wai-handler-launch" "haskell-warp" "haskell-yesod"
+         "haskell-yesod-core" "haskell-yesod-form" "haskell-yesod-static" "haskell-json" 
+         "haskell-megaparsec" "haskell-mtl")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('e2ed222e59165d307a87fff9e9374017bfe2f80094deea03b041669db1d9087fb9bff50580f37121b94d1a62d79f2ef446566890687e78198f9ae5f9e7e6d9e4')
+
+prepare() {
+    sed -e 's/megaparsec >=5.0 && < 5.3/megaparsec >=5.0 \&\& < 5.4/' \
+        -i ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-dev -f-library-only -f-oldtime -fthreaded
+    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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Copied: hledger-web/repos/community-staging-x86_64/PKGBUILD (from rev 241366, hledger-web/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-06-28 15:21:00 UTC (rev 241367)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-web
+pkgver=1.2
+pkgrel=13
+pkgdesc="Web interface for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('ghc' 'hledger' "haskell-hledger-lib" "haskell-base-compat" "haskell-blaze-html"
+         "haskell-blaze-markup" "haskell-clientsession" "haskell-cmdargs" "haskell-data-default"
+         "haskell-hjsmin" "haskell-http-conduit" "haskell-http-client" "haskell-hunit"
+         "haskell-conduit-extra" "haskell-safe" "haskell-shakespeare" "haskell-text" "haskell-wai"
+         "haskell-wai-extra" "haskell-wai-handler-launch" "haskell-warp" "haskell-yesod"
+         "haskell-yesod-core" "haskell-yesod-form" "haskell-yesod-static" "haskell-json" 
+         "haskell-megaparsec" "haskell-mtl")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('e2ed222e59165d307a87fff9e9374017bfe2f80094deea03b041669db1d9087fb9bff50580f37121b94d1a62d79f2ef446566890687e78198f9ae5f9e7e6d9e4')
+
+prepare() {
+    sed -e 's/megaparsec >=5.0 && < 5.3/megaparsec >=5.0 \&\& < 5.4/' \
+        -i ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-dev -f-library-only -f-oldtime -fthreaded
+    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}"
+    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