53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'hledger'
|
|
pkgname=hledger
|
|
version=1.14.2
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
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/"
|
|
distfiles="https://github.com/simonmichael/${pkgname}/archive/${pkgname}-${version}.tar.gz"
|
|
checksum=127edf1a8ca5b3c16e9163ec777909eb6f045f3ae3f0500ba7333074ff78c393
|
|
nopie_files="/usr/bin/hledger"
|
|
nocross=yes # Can't yet cross compile Haskell
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) broken="https://build.voidlinux.org/builders/x86_64-musl_builder/builds/22210/steps/shell_3/logs/stdio" ;;
|
|
esac
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
hledger-api_package() {
|
|
nopie_files="/usr/bin/hledger-api"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/bin/hledger-api
|
|
vman hledger-api/hledger-api.1
|
|
}
|
|
}
|