New package: ledger-3.1

This commit is contained in:
Dominik Honnef 2014-10-13 17:23:43 +02:00
parent c0687cbba7
commit 1e08480cf2
4 changed files with 47 additions and 0 deletions

View File

@ -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

44
srcpkgs/ledger/template Normal file
View File

@ -0,0 +1,44 @@
# Template file for 'ledger'
pkgname=ledger
version=3.1
revision=1
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
}
}

1
srcpkgs/libledger Symbolic link
View File

@ -0,0 +1 @@
ledger

1
srcpkgs/libledger-devel Symbolic link
View File

@ -0,0 +1 @@
ledger