Date: Tuesday, August 9, 2022 @ 18:09:53
Author: felixonmars
Revision: 1264419
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 1264418, hledger-ui/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: hledger-ui/repos/community-staging-x86_64/PKGBUILD (from rev 1264418,
hledger-ui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-08-09 18:09:53 UTC (rev 1264419)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Arch Haskell Team <[email protected]>
+
+pkgname=hledger-ui
+pkgver=1.26
+pkgrel=2
+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-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=('63c299af40f29bfe99e1af3508f43051e8e5f8ead4d90b4af51607fe333899d10b21732ba12614ef6a41e389fcf2d7662f0986acff78e6b9451d5fe67f695837')
+
+prepare() {
+ cd $pkgname-$pkgver
+ uusi -u doclayout $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
\
+ -fthreaded
+ runhaskell Setup build $MAKEFLAGS
+}
+
+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/
+}