void-packages/srcpkgs/ledger/template

48 lines
1.3 KiB
Bash
Raw Normal View History

2014-10-13 15:23:43 +00:00
# Template file for 'ledger'
pkgname=ledger
version=3.1
2015-06-09 14:13:13 +00:00
revision=2
2014-10-13 15:23:43 +00:00
build_style=cmake
maintainer="Dominik Honnef <dominik@honnef.co>"
hostmakedepends="cmake"
2014-10-13 15:23:43 +00:00
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
https://github.com/ledger/utfcpp/archive/2233ec933f5661c7050b94d3b14f5f9f51ae3d55.tar.gz"
checksum="eeb5d260729834923fc94822bcc54ca3080c434f81466a3f5dc4274b357ce694
ef26b00a6eef5a46c810faab66ca1bf0864f7d908d8fb152b8bd821b80ec4e75"
2014-10-13 15:23:43 +00:00
pre_configure() {
rmdir lib/utfcpp
ln -s ${XBPS_BUILDDIR}/utfcpp-2233ec933f5661c7050b94d3b14f5f9f51ae3d55 lib/utfcpp
2014-10-13 15:23:43 +00:00
}
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
}
}