Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 242F6781119 for <~alpine/aports@lists.alpinelinux.org>; Mon, 13 Dec 2021 06:20:02 +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=1639376401; 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=qNffbC3URX60dUHdMaHJJPk/NEB3d5ko/hs2l+cyoC4=; b=oqye/+g1hfK/vzMq1st2IOdmCquoLpZai5I8/UqfgUa0R2byEhiRRjuLN8lMsvhihP8PzQ Q8kUcAtnAaTiSo1sdi+Civ0BUudPORt+ZeYP2r8J07/l2EfC4nBYgrEqNneswRDD3Ac9D3 g90ppEmJmSvrJVMLZqnxt9jIx5BUs8Q= From: Dhruvin Gandhi To: ~alpine/aports@lists.alpinelinux.org Cc: Dhruvin Gandhi Subject: [PATCH v3 3/3] testing/hledger-web: new aport Date: Mon, 13 Dec 2021 11:49:36 +0530 Message-Id: <20211213061936.11940-3-contact@dhruvin.dev> In-Reply-To: <20211213061936.11940-1-contact@dhruvin.dev> References: <20211213061936.11940-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-web/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testing/hledger-web/APKBUILD 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 +# Maintainer: Dhruvin Gandhi +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 +" -- 2.34.1