2017-04-05 21:44:53 +02:00
|
|
|
# Template file for 'hledger'
|
|
|
|
pkgname=hledger
|
2017-10-01 18:03:24 +02:00
|
|
|
version=1.4
|
2017-04-05 21:44:53 +02:00
|
|
|
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"
|
2017-10-01 18:03:24 +02:00
|
|
|
checksum=7ee318661773e84e56943e12074f612fa597acc789202c0c5b9b5f13110ef0ed
|
2017-04-05 21:44:53 +02:00
|
|
|
nopie=yes # network-2.6.3.1 build fails with a relocation
|
|
|
|
|
2017-10-01 18:03:24 +02:00
|
|
|
post_extract() {
|
|
|
|
cp stack8.0.yaml stack.yaml
|
|
|
|
}
|
|
|
|
|
2017-04-05 21:44:53 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|