Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 3DFE77810FF for <~alpine/aports@lists.alpinelinux.org>; Tue, 14 Dec 2021 07:15:30 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dhruvin.dev; s=key1; t=1639465587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OE2VtGD1WCeBbEWMiDjo/pGHODewvWCTe80+aTSOUGU=; b=ldMOIky3UVonh88j3OapAgw+9ruCObUElayYTM9QXr8UekGhq0XGss/xpKqihEtRzmLf6P UPVGAx+fzYczkvxR6mDO8XqOBylofk7wcwebU3RCTosCyM/6OBJoWcPP2ZeTjFgrrizguT 1H/I1KWRih/WlW2urjyGQPE3rWEQeHg= From: Dhruvin Gandhi To: ~alpine/aports@lists.alpinelinux.org Cc: Dhruvin Gandhi Subject: [PATCH v4 2/3] testing/hledger-ui: new aport Date: Tue, 14 Dec 2021 12:36:00 +0530 Message-Id: <20211214070601.20821-3-contact@dhruvin.dev> In-Reply-To: <20211214070601.20821-1-contact@dhruvin.dev> References: <20211214070601.20821-1-contact@dhruvin.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: contact@dhruvin.dev --- testing/hledger-ui/APKBUILD | 42 ++++++ testing/hledger-ui/cabal.project.freeze | 191 ++++++++++++++++++++++++ 2 files changed, 233 insertions(+) create mode 100644 testing/hledger-ui/APKBUILD create mode 100644 testing/hledger-ui/cabal.project.freeze diff --git a/testing/hledger-ui/APKBUILD b/testing/hledger-ui/APKBUILD new file mode 100644 index 0000000000..dfa7d154ab --- /dev/null +++ b/testing/hledger-ui/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Dhruvin Gandhi +# Maintainer: Dhruvin Gandhi +pkgname=hledger-ui +pkgver=1.24.1 +pkgrel=0 +pkgdesc="Curses-style terminal interface for the hledger accounting system" +url="https://hledger.org/hledger-ui.html" +arch="x86_64" # limited by ghc +license="GPL-3.0-only" +makedepends="ghc cabal libffi-dev ncurses-dev" +subpackages="$pkgname-doc" +source="https://hackage.haskell.org/package/hledger-ui-$pkgver/hledger-ui-$pkgver.tar.gz + cabal.project.freeze" + +export CABAL_DIR="$srcdir"/cabal + +prepare() { + default_prepare + cp "$srcdir"/cabal.project.freeze . +} + +build() { + cabal update + cabal build --prefix=/usr --enable-relocatable +} + +check() { + cabal test +} + +package() { + local ghcver=$(ghc --version | cut -d " " -f 8) + install -Dm755 \ + "dist-newstyle/build/$arch-linux/ghc-$ghcver/$pkgname-$pkgver/x/$pkgname/build/$pkgname/$pkgname" \ + "$pkgdir"/usr/bin/$pkgname + install -Dm644 $pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1 +} + +sha512sums=" +9a71ba18c76a477a12df34adb4d1d11e5a72769b14e27950ff675107faf210dbe9ee18d4e6bf13151789f73591e72b62fb7f3ea581a2ddff6457814d9220f4d4 hledger-ui-1.24.1.tar.gz +a8c9d31b82ad69cf0ad7324186f3f9b49ee7400b8eb450ce8fa6f99da28c138982bf16b1f1d20bf9ef7380509ea273d1e913d8d0e87192aba69154891aeab1bc cabal.project.freeze +" diff --git a/testing/hledger-ui/cabal.project.freeze b/testing/hledger-ui/cabal.project.freeze new file mode 100644 index 0000000000..7b03fa243a --- /dev/null +++ b/testing/hledger-ui/cabal.project.freeze @@ -0,0 +1,191 @@ +active-repositories: hackage.haskell.org:merge +constraints: any.Cabal ==3.4.0.0, + any.Decimal ==0.5.2, + any.Diff ==0.4.0, + any.Glob ==0.10.2, + any.Only ==0.1, + any.QuickCheck ==2.14.2, + QuickCheck -old-random +templatehaskell, + any.StateVar ==1.2.2, + any.aeson ==1.5.6.0, + aeson -bytestring-builder -cffi -developer -fast, + any.aeson-pretty ==0.8.9, + aeson-pretty -lib-only, + any.ansi-terminal ==0.11.1, + ansi-terminal -example, + any.ansi-wl-pprint ==0.6.9, + ansi-wl-pprint -example, + any.array ==0.5.4.0, + any.assoc ==1.0.2, + any.async ==2.2.4, + async -bench, + any.attoparsec ==0.14.3, + attoparsec -developer, + any.base ==4.15.0.0, + any.base-compat ==0.12.1, + any.base-compat-batteries ==0.12.1, + any.base-orphans ==0.8.6, + any.bifunctors ==5.5.11, + bifunctors +semigroups +tagged, + any.binary ==0.8.8.0, + any.blaze-builder ==0.4.2.2, + any.blaze-html ==0.9.1.2, + any.blaze-markup ==0.8.2.8, + any.brick ==0.65, + brick -demos, + any.bytestring ==0.10.12.1, + any.cabal-doctest ==1.0.9, + any.call-stack ==0.4.0, + any.case-insensitive ==1.2.1.0, + any.cassava ==0.5.2.0, + cassava -bytestring--lt-0_10_4, + any.cassava-megaparsec ==2.0.4, + cassava-megaparsec -dev, + any.clock ==0.8.2, + clock -llvm, + any.cmdargs ==0.10.21, + cmdargs +quotation -testprog, + any.colour ==2.3.6, + any.comonad ==5.0.8, + comonad +containers +distributive +indexed-traversable, + any.config-ini ==0.2.4.0, + config-ini -enable-doctests, + any.constraints ==0.13.2, + any.containers ==0.6.4.1, + any.contravariant ==1.5.5, + contravariant +semigroups +statevar +tagged, + any.control-monad-free ==0.6.2, + any.csv ==0.1.2, + any.data-clist ==0.1.2.3, + any.data-default ==0.7.1.1, + any.data-default-class ==0.1.2.0, + any.data-default-instances-containers ==0.0.1, + any.data-default-instances-dlist ==0.0.1, + any.data-default-instances-old-locale ==0.0.1, + any.data-fix ==0.3.2, + any.deepseq ==1.4.5.0, + any.directory ==1.3.6.1, + any.distributive ==0.6.2.1, + distributive +semigroups +tagged, + any.dlist ==1.0, + dlist -werror, + any.doclayout ==0.3.1.1, + any.emojis ==0.1.2, + any.enclosed-exceptions ==1.0.3, + any.exceptions ==0.10.4, + any.extra ==1.7.10, + any.file-embed ==0.0.15.0, + any.filepath ==1.4.2.1, + any.fsnotify ==0.3.0.1, + any.ghc-bignum ==1.0, + any.ghc-boot-th ==9.0.1, + any.ghc-prim ==0.7.0, + any.githash ==0.1.6.2, + any.hashable ==1.3.5.0, + hashable +integer-gmp -random-initial-seed, + any.hashtables ==1.2.4.2, + hashtables -bounds-checking -debug -detailed-profiling -portable -sse42 +unsafe-tricks, + any.haskeline ==0.8.1.0, + any.hinotify ==0.4.1, + any.hledger ==1.24.1, + hledger +terminfo +threaded, + any.hledger-lib ==1.24.1, + hledger-ui +threaded, + any.html ==1.0.1.2, + any.indexed-traversable ==0.1.2, + any.integer-logarithms ==1.0.3.1, + integer-logarithms -check-bounds +integer-gmp, + any.lifted-async ==0.10.2.2, + any.lifted-base ==0.2.3.12, + any.lucid ==2.11.0, + any.math-functions ==0.3.4.2, + math-functions +system-erf +system-expm1, + any.megaparsec ==9.2.0, + megaparsec -dev, + any.microlens ==0.4.12.0, + any.microlens-ghc ==0.4.13.1, + any.microlens-mtl ==0.2.0.1, + any.microlens-platform ==0.4.2.1, + any.microlens-th ==0.4.3.10, + any.mmorph ==1.2.0, + any.monad-control ==1.0.3.1, + any.mtl ==2.2.2, + any.old-locale ==1.0.0.7, + any.optparse-applicative ==0.16.1.0, + optparse-applicative +process, + any.parallel ==3.2.2.0, + any.parsec ==3.1.14.0, + any.parser-combinators ==1.3.0, + parser-combinators -dev, + any.pretty ==1.1.3.6, + any.pretty-simple ==4.0.0.0, + pretty-simple -buildexample -buildexe, + any.prettyprinter ==1.7.1, + prettyprinter -buildreadme +text, + any.prettyprinter-ansi-terminal ==1.1.3, + any.primitive ==0.7.3.0, + any.process ==1.6.11.0, + any.random ==1.2.1, + any.regex-base ==0.94.0.2, + any.regex-tdfa ==1.3.1.1, + regex-tdfa -force-o2, + any.rts ==1.0, + any.safe ==0.3.19, + any.scientific ==0.3.7.0, + scientific -bytestring-builder -integer-simple, + any.shakespeare ==2.0.25, + shakespeare -test_coffee -test_export -test_roy, + any.shelly ==1.9.0, + shelly -build-examples -lifted, + any.split ==0.2.3.4, + any.splitmix ==0.1.0.4, + splitmix -optimised-mixer, + any.stm ==2.5.0.0, + any.strict ==0.4.0.1, + strict +assoc, + any.tabular ==0.2.2.8, + any.tagged ==0.8.6.1, + tagged +deepseq +transformers, + any.tasty ==1.4.2.1, + tasty +clock +unix, + any.tasty-hunit ==0.10.0.3, + any.template-haskell ==2.17.0.0, + any.temporary ==1.3, + any.terminfo ==0.4.1.4, + any.text ==1.2.4.1, + any.text-short ==0.1.4, + text-short -asserts, + any.text-zipper ==0.11, + any.th-abstraction ==0.4.3.0, + any.th-compat ==0.1.3, + any.th-lift ==0.8.2, + any.these ==1.1.1.1, + these +assoc, + any.time ==1.9.3, + any.time-compat ==1.9.6.1, + time-compat -old-locale, + any.timeit ==2.0, + any.transformers ==0.5.6.2, + any.transformers-base ==0.4.6, + transformers-base +orphaninstances, + any.transformers-compat ==0.7.1, + transformers-compat -five +five-three -four +generic-deriving +mtl -three -two, + any.type-equality ==1, + any.uglymemo ==0.1.0.1, + any.unbounded-delays ==0.1.1.1, + any.unix ==2.7.2.2, + any.unix-compat ==0.5.3, + unix-compat -old-time, + any.unordered-containers ==0.2.16.0, + unordered-containers -debug, + any.utf8-string ==1.0.2, + any.utility-ht ==0.0.16, + any.uuid-types ==1.0.5, + any.vector ==0.12.3.1, + vector +boundschecks -internalchecks -unsafechecks -wall, + any.vty ==5.33, + any.wcwidth ==0.0.2, + wcwidth -cli +split-base, + any.wizards ==1.0.3, + any.word-wrap ==0.5 +index-state: hackage.haskell.org 2021-12-14T06:08:15Z -- 2.34.1