37 lines
954 B
Bash
37 lines
954 B
Bash
# Template file for 'ledger'
|
|
pkgname=ledger
|
|
version=3.2.0
|
|
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=9a2f1886be0181bfa0a8b3ea05207d5c6e55497d7f821af3d7e60a8e53ba11d0
|
|
|
|
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
|
|
}
|
|
}
|