void-packages/srcpkgs/ledger/template

39 lines
974 B
Bash

# Template file for 'ledger'
pkgname=ledger
version=3.2.1
revision=1
build_style=cmake
makedepends="boost-devel gmp-devel mpfr-devel gettext-devel libedit-devel"
short_desc="Double-entry accounting system with a command-line reporting interface"
maintainer="Daniel Santana <daniel@santana.tech>"
license="BSD-3-Clause"
homepage="https://www.ledger-cli.org/"
distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
checksum=92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a
patch_args=-Np0
post_install() {
rm -Rf ${DESTDIR}/usr/local
if [ -e ${DESTDIR}/usr/lib64 ]; then
mv ${DESTDIR}/usr/lib64 ${DESTDIR}/usr/lib
fi
vlicense LICENSE.md
}
libledger_package() {
short_desc+=" - library files"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libledger-devel_package() {
short_desc+=" - development files"
depends="libledger>=${version}_${revision} ${makedepends}"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
}
}