void-packages/srcpkgs/ledger/template

40 lines
1.1 KiB
Bash

# Template file for 'ledger'
pkgname=ledger
version=3.1.1
revision=5
build_style=cmake
maintainer="Orphaned <orphan@voidlinux.eu>"
makedepends="boost-devel gmp-devel mpfr-devel gettext-devel libedit-devel"
license="BSD"
homepage="http://www.ledger-cli.org/"
short_desc="A powerful, double-entry accounting system that is accessed from the UNIX command-line"
distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
checksum="90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a"
post_install() {
rm -Rf ${DESTDIR}/usr/local
if [ -e ${DESTDIR}/usr/lib64 ]; then
mv ${DESTDIR}/usr/lib64 ${DESTDIR}/usr/lib
fi
mkdir -p ${DESTDIR}/usr/share/emacs/
mv lisp ${DESTDIR}/usr/share/emacs/site-lisp
rm -f ${DESTDIR}/usr/share/emacs/site-lisp/CMakeLists.txt
}
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
}
}