04476ffc07
I have absolutely no idea why find_path fails when cross-compiling. The file we're looking for is bundled in the tarball and doesn't change place when we cross-compile, and we're looking in the right place for it. If someone wants to fix this properly, go ahead. In the meantime, we hardcode the result.
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'ledger'
|
|
pkgname=ledger
|
|
version=3.1.1
|
|
revision=2
|
|
build_style=cmake
|
|
maintainer="Dominik Honnef <dominik@honnef.co>"
|
|
hostmakedepends="cmake"
|
|
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
|
|
}
|
|
}
|