void-packages/srcpkgs/hledger/template
Ameise 7544f4a279 hledger: update to 1.20.4
Closes: #27534 [via git-merge-pr]
2021-02-04 02:58:41 -03:00

40 lines
1.1 KiB
Bash

# Template file for 'hledger'
pkgname=hledger
version=1.20.4
revision=1
build_style=haskell-stack
makedepends="zlib-devel ncurses-devel"
short_desc="Simple, precise, plain text accounting"
maintainer="Inokentiy Babushkin <twk@twki.de>"
license="GPL-3.0-or-later"
homepage="http://hledger.org/"
changelog="https://hackage.haskell.org/package/hledger-${version}/changelog"
distfiles="https://github.com/simonmichael/${pkgname}/archive/${version}.tar.gz"
checksum=1213854ee7cf94913652706139b4c7f619af4394f5e70856b859f3c0ed07b2a4
nopie_files="/usr/bin/hledger"
nocross=yes # Can't yet cross compile Haskell
post_install() {
vman hledger/hledger.1
for manpage in hledger-lib/*.5; do
vman $manpage
done
}
hledger-ui_package() {
nopie_files="/usr/bin/hledger-ui"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/hledger-ui
vman hledger-ui/hledger-ui.1
}
}
hledger-web_package() {
nopie_files="/usr/bin/hledger-web"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/hledger-web
vman hledger-web/hledger-web.1
}
}