37 lines
952 B
Bash
37 lines
952 B
Bash
# Template file for 'ledger'
|
|
pkgname=ledger
|
|
version=3.1.2
|
|
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="http://www.ledger-cli.org/"
|
|
distfiles="https://github.com/ledger/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=3ecebe00e8135246e5437e4364bb7a38869fad7c3250b849cf8c18ca2628182e
|
|
|
|
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
|
|
}
|
|
}
|