# Contributor: Dhruvin Gandhi # Maintainer: Dhruvin Gandhi pkgname=hledger-iadd pkgver=1.3.18 pkgrel=0 pkgdesc="A terminal UI as drop-in replacement for hledger add" url="https://github.com/hpdeifel/hledger-iadd#readme" arch="aarch64 x86_64" # limited by ghc license="BSD-3-Clause" makedepends=" cabal ghc libffi-dev ncurses-dev zlib-dev " _llvmver=14 source="https://hackage.haskell.org/package/hledger-iadd-$pkgver/hledger-iadd-$pkgver.tar.gz cabal.project.freeze" export CABAL_DIR="$srcdir"/cabal export PATH="/usr/lib/llvm$_llvmver/bin:$PATH" prepare() { default_prepare cp "$srcdir"/cabal.project.freeze . } build() { cabal update cabal build --prefix=/usr --enable-relocatable } check() { cabal test } package() { install -Dm755 "$(cabal list-bin hledger-iadd)" "$pkgdir"/usr/bin/hledger-iadd } sha512sums=" 33404b9cc1399d995db0269e5aa3bb27b9057dfb7cfcdc91b8ce1ba0b8f78c35f5439c0a298b3b89c1c747605b81d93d79fbb99d5ead0aca00c866fc4b74c49e hledger-iadd-1.3.18.tar.gz 0cd9b0f3a8dc67f9ab0f32f8209dd024ff93719615820ee153db7ce8b72477f0b9a0bd1f303a24c48363ad67676965c087660b6d19fdd90f243a5b34c326bfd7 cabal.project.freeze "