Date: Thursday, December 6, 2018 @ 21:59:16
  Author: felixonmars
Revision: 411976

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

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

Copied: hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 411975, 
hledger-ui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-12-06 21:59:16 UTC (rev 411976)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+pkgname=hledger-ui
+pkgver=1.12
+pkgrel=6
+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-batteries' 'haskell-cmdargs' 
'haskell-data-default' 'haskell-fsnotify'
+         'haskell-microlens' 'haskell-microlens-platform' 'haskell-megaparsec' 
'haskell-pretty-show'
+         'haskell-safe' 'haskell-split' '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=('846ee373733157f1248d6e54adade3ce6b38c377ddcb971199e90939db86c3a0f9c968166397c5829e94a3be54923f5e6dad9c9a6445503e7b2dcbae0d175f77')
+
+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"
+}

Reply via email to