diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2016-12-07 00:08:24 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2016-12-07 00:08:24 -0500 |
commit | 820e8d238327f427303b8bcecc4c77aba78ac585 (patch) | |
tree | b3620f069fa37c71e9e6fc8d3cf28d08b395b939 /pcr | |
parent | 56fdf776325eb52f3b7f1c4d3819fca63b1a4fcc (diff) | |
download | abslibre-820e8d238327f427303b8bcecc4c77aba78ac585.tar.gz abslibre-820e8d238327f427303b8bcecc4c77aba78ac585.tar.bz2 abslibre-820e8d238327f427303b8bcecc4c77aba78ac585.zip |
add ledger-git to pcr
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/ledger-git/PKGBUILD | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/pcr/ledger-git/PKGBUILD b/pcr/ledger-git/PKGBUILD new file mode 100644 index 000000000..3be389f37 --- /dev/null +++ b/pcr/ledger-git/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 +# Contributor: Johann Klahn <kljohann@gmail.com> +# Contributor: Nathan Jones <nathanj@insightbb.com> +# Contributor: korjjj <korjjj+aur[at]gmail[dot]com> +# Contributor: TDY <tdy at archlinux dot info> +# Contributor: Adam Ehlers Nyholm Thomsen <adament at gmail dot com> +# Contributor: Nathan Jones <nathanj at insightbb dot com> + +pkgname=ledger-git +pkgdesc="A double-entry accounting system with a command-line reporting interface" +pkgver=20160420 +pkgrel=1 + +_branch=next + +## Uncomment this line if you want a debug build: +# _build=debug + +_defines=(BUILD_DOCS=ON CMAKE_INSTALL_LIBDIR=lib/) + +## Uncomment this line if you want to include the ledger-mode: +# _defines+=(BUILD_EMACSLISP=ON) + +depends=('mpfr' 'boost-libs' 'libedit') +makedepends=('boost' 'git' 'sed' 'python2' 'cmake' 'texinfo' 'texlive-plainextra') +url="http://ledger-cli.org" +license=('BSD3') +arch=('i686' 'x86_64') +provides=('ledger') +conflicts=('ledger') +[[ "${_build}" == "debug" ]] && options=('!strip') +install="ledger.install" +source=("ledger::git://github.com/ledger/ledger.git#branch=${_branch}") +sha256sums=('SKIP') + +pkgver() { + cd ledger + # git describe --always | sed 's|-|.|g' + git log --format="%cd" --date=short -1 | sed 's/-//g' +} + +prepare() { + cd ledger + find -iname '*.py' -execdir sed -i 's|^#!.*python$|#!/usr/bin/python2|' '{}' \; + sed -i 's|^#!.*python$|#!/usr/bin/python2|' ./acprep + cmake ./ \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_INSTALL_LIBDIR:PATH=lib \ + -DCMAKE_SKIP_RPATH:BOOL=TRUE \ + -DDISABLE_ASSERTS:BOOL=TRUE \ + -DBUILD_DEBUG:BOOL=FALSE \ + -DBUILD_DOCS:BOOL=FALSE \ + -DUSE_PYTHON:BOOL=TRUE \ + -DBUILD_EMACSLISP:BOOL=TRUE +} + +build() { + cd ledger + make +} + +package () { + cd ledger + make DESTDIR="${pkgdir}" install + install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |