Date: Sunday, February 5, 2023 @ 00:29:44
  Author: felixonmars
Revision: 1392630

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

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

Copied: hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 1392628, 
hledger-ui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-02-05 00:29:44 UTC (rev 1392630)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Maintainer: Caleb Maclennan <ca...@alerque.com>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+pkgname=hledger-ui
+pkgver=1.27.1
+pkgrel=42
+pkgdesc="Curses-style terminal interface for the hledger accounting system"
+url="http://hledger.org";
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'hledger' 'haskell-hledger-lib' 'haskell-ansi-terminal' 
'haskell-async'
+         'haskell-breakpoint' 'haskell-cmdargs' 'haskell-data-default' 
'haskell-doclayout'
+         'haskell-extra' 'haskell-fsnotify' 'haskell-microlens' 
'haskell-microlens-platform'
+         'haskell-megaparsec' 'haskell-safe' 'haskell-split' 
'haskell-text-zipper'
+         'haskell-vector' 'haskell-brick' 'haskell-vty')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('3044ce1a94d4741827924800714410abc7128bf780e180da670d13ce2fecb5e76959f5d4fea49f9d2eeab5ba48dbef9cb2843252e4373bd1de13e440f4e7fb4d')
+
+prepare() {
+    cd $pkgname-$pkgver
+    uusi -u megaparsec $pkgname.cabal
+}
+
+build() {
+    cd $pkgname-$pkgver
+    runhaskell Setup configure -O --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/$pkgname" --datasubdir=$pkgname 
--enable-tests \
+            -fthreaded
+    runhaskell Setup build $MAKEFLAGS
+}
+
+check() {
+    cd $pkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+package() {
+    cd $pkgname-$pkgver
+    runhaskell Setup copy --destdir="$pkgdir"
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+
+    install -Dm644 hledger-ui.1 -t "$pkgdir"/usr/share/man/man1/
+}

Reply via email to