void-packages/srcpkgs/hledger/template
Inokentiy Babushkin b2a85f904f hledger: update to 1.3
Closes: #6923 [via git-merge-pr]
2017-07-05 04:50:18 -04:00

46 lines
1.2 KiB
Bash

# Template file for 'hledger'
pkgname=hledger
version=1.3
revision=1
build_style=haskell-stack
nocross=yes # Can't yet cross compile Haskell
short_desc="Simple, precise, plain text accounting"
maintainer="Inokentiy Babushkin <twk@twki.de>"
license="GPL-3"
homepage="http://hledger.org/"
makedepends="zlib-devel ncurses-devel"
wrksrc="${pkgname}-${pkgname}-${version}"
distfiles="https://github.com/simonmichael/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum="be2e22695d4debd2ff4ab82bd5671dbdc26d22bf2438d726a325021fffc81857"
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
}
}