Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 28696781094 for <~alpine/aports@lists.alpinelinux.org>; Mon, 13 Dec 2021 05:23:33 +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=1639372984; 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; bh=9hwzgIbaIIJNIx880ktmYVElA6BO08vCuQLs0MaW5Qo=; b=PSUq41mDqyNlmXC3D1G/5kJSrVwuLlKoM8cgQOnuF8x8i+usxHD2kPRi2l1EqDiNQuSmBj VaA7gu/iwH8FulJyO80Bk12e2vuGo0ikpb7zsrdRYngK6fp+61F+IeQfd0vQkMAiGEJg/U ynTdqYfUxNUUpBjiXuEpuX4xnS2ij9k= From: Dhruvin Gandhi To: ~alpine/aports@lists.alpinelinux.org Cc: Dhruvin Gandhi Subject: [PATCH v2 1/3] testing/hledger: add aport Date: Mon, 13 Dec 2021 10:52:40 +0530 Message-Id: <20211213052242.8921-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/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/hledger/APKBUILD diff --git a/testing/hledger/APKBUILD b/testing/hledger/APKBUILD new file mode 100644 index 0000000000..4b88c431a2 --- /dev/null +++ b/testing/hledger/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Dhruvin Gandhi +# Maintainer: Dhruvin Gandhi +pkgname=hledger +pkgver=1.24.1 +pkgrel=0 +pkgdesc="Command-line interface for the hledger accounting system" +url="https://hledger.org/hledger.html" +arch="x86_64" # limited by ghc +license="GPL-3.0-only" +makedepends="ghc cabal libffi-dev ncurses-dev" +subpackages="$pkgname-doc $pkgname-bash-completion" +source="https://hackage.haskell.org/package/hledger-$pkgver/hledger-$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 + install -Dm644 shell-completion/$pkgname-completion.bash \ + "$pkgdir"/usr/share/bash-completion/completions/$pkgname +} + +sha512sums=" +0941258f7c6f699967261eaf9e20c1f81f6694b8f559ac1e729f37cff64dce3b787447f69c222115437318e8ccd6c4273e52befa41b3419f8fb4cc131c7fcdf7 hledger-1.24.1.tar.gz +" -- 2.34.1