void-packages/srcpkgs/ledger/template
2020-01-25 21:03:23 +01:00

37 lines
953 B
Bash

# Template file for 'ledger'
pkgname=ledger
version=3.1.3
revision=3
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="http://www.ledger-cli.org/"
distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
checksum=b248c91d65c7a101b9d6226025f2b4bf3dabe94c0c49ab6d51ce84a22a39622b
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
}
}