From 5e9407457753c7e943d30cd240d03b4df1b51a0f Mon Sep 17 00:00:00 2001 From: Inokentiy Babushkin Date: Wed, 5 Apr 2017 21:44:53 +0200 Subject: [PATCH] New package: hledger-1.2 Closes: #6098 [via git-merge-pr] --- srcpkgs/hledger-api | 1 + srcpkgs/hledger-ui | 1 + srcpkgs/hledger-web | 1 + srcpkgs/hledger/template | 47 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 120000 srcpkgs/hledger-api create mode 120000 srcpkgs/hledger-ui create mode 120000 srcpkgs/hledger-web create mode 100644 srcpkgs/hledger/template diff --git a/srcpkgs/hledger-api b/srcpkgs/hledger-api new file mode 120000 index 00000000000..a4387358df9 --- /dev/null +++ b/srcpkgs/hledger-api @@ -0,0 +1 @@ +hledger \ No newline at end of file diff --git a/srcpkgs/hledger-ui b/srcpkgs/hledger-ui new file mode 120000 index 00000000000..a4387358df9 --- /dev/null +++ b/srcpkgs/hledger-ui @@ -0,0 +1 @@ +hledger \ No newline at end of file diff --git a/srcpkgs/hledger-web b/srcpkgs/hledger-web new file mode 120000 index 00000000000..a4387358df9 --- /dev/null +++ b/srcpkgs/hledger-web @@ -0,0 +1 @@ +hledger \ No newline at end of file diff --git a/srcpkgs/hledger/template b/srcpkgs/hledger/template new file mode 100644 index 00000000000..1c55827752f --- /dev/null +++ b/srcpkgs/hledger/template @@ -0,0 +1,47 @@ +# Template file for 'hledger' +pkgname=hledger +version=1.2 +revision=1 +build_style=haskell-stack +nocross=yes # Can't yet cross compile Haskell +short_desc="Simple, precise, plain text accounting" +maintainer="Inokentiy Babushkin " +license="GPL-3" +homepage="http://hledger.org/" +makedepends="zlib-devel ncurses-devel" +wrksrc="${pkgname}-${pkgname}-${version}" +stackage="lts-8.6" +distfiles="https://github.com/simonmichael/${pkgname}/archive/${pkgname}-${version}.tar.gz" +checksum="bd00115272feada9e388b1aafe6f105369f0d0f0286f65b4ed35fb4ffcd3ad54" +nopie=yes # network-2.6.3.1 build fails with a relocation + +post_install() { + vman hledger/doc/hledger.1 + for manpage in hledger/doc/other/*.5; do + vman $manpage + done +} + +hledger-ui_package() { + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/bin/hledger-ui + vman hledger/doc/other/hledger-ui.1 + } +} + +hledger-web_package() { + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/bin/hledger-web + vman hledger/doc/other/hledger-web.1 + } +} + +hledger-api_package() { + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/bin/hledger-api + vman hledger/doc/other/hledger-api.1 + } +}