[arch-commits] Commit in hledger-ui/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 29 18:30:35 UTC 2017


    Date: Wednesday, November 29, 2017 @ 18:30:34
  Author: felixonmars
Revision: 270758

archrelease: copy trunk to community-staging-x86_64

Added:
  hledger-ui/repos/community-staging-x86_64/
  hledger-ui/repos/community-staging-x86_64/PKGBUILD
    (from rev 270757, hledger-ui/trunk/PKGBUILD)

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

Copied: hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 270757, hledger-ui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-29 18:30:34 UTC (rev 270758)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-ui
+pkgver=1.4
+pkgrel=7
+pkgdesc="Curses-style user interface for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'hledger' "haskell-hledger-lib" "haskell-ansi-terminal" "haskell-async"
+         "haskell-base-compat" "haskell-cmdargs" "haskell-data-default" "haskell-fsnotify"
+         "haskell-hunit" "haskell-microlens" "haskell-microlens-platform" "haskell-megaparsec"
+         "haskell-pretty-show" "haskell-safe" "haskell-split" "haskell-text" "haskell-text-zipper"
+         "haskell-vector" "haskell-brick" "haskell-vty")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('25712f7254933cd14cc1876b4c5b1eae2ea8c07324191b34e8c875cbe4e5ee60389db5cf804d556d91cc99d1baccf7dedd3cfe094a29caa03ee0981b12e89937')
+
+prepare() {
+    # It does nothing
+    sed -e '/mtl-compat/d' \
+        -e 's/, megaparsec >=5.0 && < 6.2/, megaparsec >=5/' \
+        -e 's/vty >= 5.5 && < 5.18/vty >= 5.5/' \
+        -e 's/brick >= 0.12 && < 0.25/brick >= 0.12/' \
+        -i ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    runhaskell Setup configure -O --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+            -fthreaded
+    runhaskell Setup build
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list