aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruvin Gandhi <contact@dhruvin.dev>2021-12-13 11:49:36 +0530
committerdispatch <dispatch@listserv.local>2021-12-13 06:20:03 +0000
commit0b77fc2a79b550770f9d4909fdf97007b90cc462 (patch)
tree482fb1357721b9539c64e4ac21290b3ab2907317
parenta3873a43196ce2577c03506ae2afb898fd74841a (diff)
downloadaports-patches/3804.tar.gz
aports-patches/3804.tar.bz2
aports-patches/3804.tar.xz
testing/hledger-web: new aportpatches/3804
-rw-r--r--testing/hledger-web/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/hledger-web/APKBUILD b/testing/hledger-web/APKBUILD
new file mode 100644
index 0000000000..e3b5252b92
--- /dev/null
+++ b/testing/hledger-web/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Dhruvin Gandhi <contact@dhruvin.dev>
+# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
+pkgname=hledger-web
+pkgver=1.24.1
+pkgrel=0
+pkgdesc="Web interface for the hledger accounting system"
+url="https://hledger.org/hledger-web.html"
+arch="x86_64" # limited by ghc
+license="GPL-3.0-only"
+makedepends="ghc cabal libffi-dev ncurses-dev zlib-dev"
+subpackages="$pkgname-doc"
+source="https://hackage.haskell.org/package/hledger-web-$pkgver/hledger-web-$pkgver.tar.gz"
+
+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="
+49e6292faad4a1311d1af950a98a546e6ec61f5dfa97539e62a806e63bbd43351861ab4c45f8eb7284e98367fb92e206a217e998c6572ca8b2f37e91bb93daaf hledger-web-1.24.1.tar.gz
+"