aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruvin Gandhi <contact@dhruvin.dev>2021-12-12 11:58:22 +0530
committerdispatch <dispatch@listserv.local>2021-12-12 06:36:34 +0000
commit6104d80cdb6392689fb5c00e3eeac1fae444a41f (patch)
tree616cf98eaea0c44bbb9eb86696604ffebd1ee848
parente242b753876c442ac25151fe6257b9de6afa06e2 (diff)
downloadaports-6104d80cdb6392689fb5c00e3eeac1fae444a41f.tar.gz
aports-6104d80cdb6392689fb5c00e3eeac1fae444a41f.tar.bz2
aports-6104d80cdb6392689fb5c00e3eeac1fae444a41f.tar.xz
testing/hledger-ui: add aport
-rw-r--r--testing/hledger-ui/APKBUILD36
1 files changed, 36 insertions, 0 deletions
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 <contact@dhruvin.dev>
+# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
+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
+"