blob: c45d13911e3b9ec6d1884c9fbaf789c97f28ff9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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')
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"
}
|