44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'ledger'
|
|
pkgname=ledger
|
|
version=3.1
|
|
revision=2
|
|
build_style=cmake
|
|
maintainer="Dominik Honnef <dominik@honnef.co>"
|
|
hostmakedepends="cmake git"
|
|
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=eeb5d260729834923fc94822bcc54ca3080c434f81466a3f5dc4274b357ce694
|
|
|
|
pre_configure() {
|
|
git clone --depth=1 https://github.com/ledger/utfcpp.git lib/utfcpp
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|