Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0E178781034 for <~alpine/aports@lists.alpinelinux.org>; Sun, 12 Dec 2021 06:36:31 +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=1639290532; 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=wMvTyIlPfC6HOefLjdHClWFKRT5B2spAmwE+pGY1HbA=; b=O8DEgMZLQ1FN1Sy6RlG30vQVqpCCYB4I36NIbqwKRpZkzEntYUc4qGzOLlTYExdpkwrpPm DNN6GnmDM/tDijFKddk7UU5qzYcGQffHNmPwSrAbCu7lWE51hiDB9dC3YYRK17gtMcpbVr hn8K9v0rM+W5LRQLnjJOt5tVPq86Zzk= From: Dhruvin Gandhi To: ~alpine/aports@lists.alpinelinux.org Cc: Dhruvin Gandhi Subject: [PATCH 2/3] testing/hledger-ui: add aport Date: Sun, 12 Dec 2021 11:58:22 +0530 Message-Id: <20211212062823.7923-2-contact@dhruvin.dev> In-Reply-To: <20211212062823.7923-1-contact@dhruvin.dev> References: <20211212062823.7923-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 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 testing/hledger-ui/APKBUILD diff --git a/testing/hledger-ui/APKBUILD b/testing/hledger-ui/APKBUILD new file mode 100644 index 0000000000..cea267d181 --- /dev/null +++ b/testing/hledger-ui/APKBUILD @@ -0,0 +1,36 @@ +# 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/$pkgname.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/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +export CABAL_DIR="$srcdir"/cabal + +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 +" -- 2.34.1