summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ledger-git/PKGBUILD65
1 files changed, 25 insertions, 40 deletions
diff --git a/pcr/ledger-git/PKGBUILD b/pcr/ledger-git/PKGBUILD
index c45d13911..2ff48ab2f 100644
--- a/pcr/ledger-git/PKGBUILD
+++ b/pcr/ledger-git/PKGBUILD
@@ -1,65 +1,50 @@
+# Maintainer (AUR): Ivan Zenin <i.zenin@gmx.com>
+# Maintainer (AUR): Johann Klahn <kljohann@gmail.com>
+# Contributor (AUR): Nathan Jones <nathanj@insightbb.com>
# 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>
+
+# parabola changes and rationale:
+# - fixed license
pkgname=ledger-git
-pkgdesc="A double-entry accounting system with a command-line reporting interface"
-pkgver=20160420
+pkgver=3.1.r709.ge12b8d0f
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')
+pkgdesc="A double-entry accounting system with a command-line reporting interface (development version)"
+arch=('i686' 'x86_64' 'armv7h')
url="http://ledger-cli.org"
license=('BSD3')
-arch=('i686' 'x86_64')
+depends=('mpfr' 'boost-libs' 'libedit')
provides=('ledger')
conflicts=('ledger')
-[[ "${_build}" == "debug" ]] && options=('!strip')
-source=("ledger::git://github.com/ledger/ledger.git#branch=${_branch}")
+makedepends=('boost' 'git' 'sed' 'python2' 'cmake' 'texinfo' 'texlive-plainextra')
+source=("git+git://github.com/ledger/ledger.git")
sha256sums=('SKIP')
pkgver() {
- cd ledger
- # git describe --always | sed 's|-|.|g'
- git log --format="%cd" --date=short -1 | sed 's/-//g'
+ cd "${srcdir}"/ledger
+ ( set -o pipefail
+ git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
}
prepare() {
- cd ledger
+ cd "${srcdir}"/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
+ cd "${srcdir}"/ledger
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_LIBDIR:PATH=lib
make
}
package () {
- cd ledger
+ cd "${srcdir}"/ledger
make DESTDIR="${pkgdir}" install
- install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -fr "${pkgdir}"/usr/include/ledger
+ install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/ledger/LICENSE"
}