diff --git a/common/shlibs b/common/shlibs index 2bcb3f9afbf..34c31af48c9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1781,3 +1781,4 @@ liblpsolve55.so lpsolve-5.5.2.0_1 liblangtag.so.1 liblangtag-0.5.4_1 liblangtag-gobject.so.0 liblangtag-0.5.4_1 libexttextcat-2.0.so.0 libexttextcat-3.4.3_1 +libledger.so.3 libledger-3.1_1 diff --git a/srcpkgs/ledger/template b/srcpkgs/ledger/template new file mode 100644 index 00000000000..bb6f85f3376 --- /dev/null +++ b/srcpkgs/ledger/template @@ -0,0 +1,44 @@ +# Template file for 'ledger' +pkgname=ledger +version=3.1 +revision=1 +build_style=cmake +maintainer="Dominik Honnef " +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 + } +} diff --git a/srcpkgs/libledger b/srcpkgs/libledger new file mode 120000 index 00000000000..a7378b691e7 --- /dev/null +++ b/srcpkgs/libledger @@ -0,0 +1 @@ +ledger \ No newline at end of file diff --git a/srcpkgs/libledger-devel b/srcpkgs/libledger-devel new file mode 120000 index 00000000000..a7378b691e7 --- /dev/null +++ b/srcpkgs/libledger-devel @@ -0,0 +1 @@ +ledger \ No newline at end of file