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

Felix Yan felixonmars at archlinux.org
Sat Feb 17 07:29:40 UTC 2018


    Date: Saturday, February 17, 2018 @ 07:29:39
  Author: felixonmars
Revision: 295815

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 295814, hledger-ui/trunk/PKGBUILD)

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

Copied: hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 295814, hledger-ui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-17 07:29:39 UTC (rev 295815)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-ui
+pkgver=1.5
+pkgrel=36
+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=('6f2c09df0af5c5643922d325443ccdcc2f4d1bc83e958959d377145118862be72f3709947ddd4ed09aa2cdb0cb2c9144f3fa2a22893f53fb860fb2b1423746a3')
+
+prepare() {
+    # It does nothing
+    sed -e '/mtl-compat/d' \
+        -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