Date: Monday, October 22, 2018 @ 22:25:05 Author: felixonmars Revision: 398542
archrelease: copy trunk to community-staging-x86_64 Added: ledger/repos/community-staging-x86_64/ ledger/repos/community-staging-x86_64/PKGBUILD (from rev 398541, ledger/trunk/PKGBUILD) ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Copied: ledger/repos/community-staging-x86_64/PKGBUILD (from rev 398541, ledger/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-10-22 22:25:05 UTC (rev 398542) @@ -0,0 +1,49 @@ +# Maintainer: Lukas Fleischer <lfleisc...@archlinux.org> +# Contributor: Abdelhakim Qbaich <abdelha...@qbaich.com> +# Contributor: korjjj <korjjj+...@gmail.com> +# Contributor: TDY <t...@archlinux.info> +# Contributor: Adam Ehlers Nyholm Thomsen <adam...@gmail.com> +# Contributor: Nathan Jones <nath...@insightbb.com> + +pkgname=ledger +pkgver=3.1.1 +pkgrel=9 +pkgdesc='Double-entry accounting system with a command-line reporting interface' +arch=('i686' 'x86_64') +url='http://ledger-cli.org' +license=('BSD') +depends=('python2' 'boost' 'libedit') +makedepends=('cmake') +source=("$pkgname-$pkgver.tar.gz::https://github.com/ledger/$pkgname/archive/v$pkgver.tar.gz" + "$pkgname-boost-1.61.patch::https://github.com/ledger/$pkgname/commit/1856b8c4902498843f4da37a7aaeb2ce85acc1d3.patch" + "$pkgname-boost-1.68.patch::https://github.com/ledger/$pkgname/commit/c18a55f9ef9969b38e5cf7f0f319b8ec5df34809.patch") +sha256sums=('90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a' + '3fe6750973d1ac10c822735759b35f362a68afb3dfa9887aaa7d83839a9e99eb' + '8d8e646cb872203a1111d8a304f2d3993f4334c65179e32134964267931357ab') + +prepare() { + cd "$pkgname-$pkgver" + + sed -i '/enable_testing()\|add_subdirectory(test)/d' CMakeLists.txt + patch -p1 -i "$srcdir/$pkgname-boost-1.61.patch" + patch -p1 -i "$srcdir/$pkgname-boost-1.68.patch" +} + +build() { + cd "$pkgname-$pkgver" + + cmake . \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_INSTALL_LIBDIR:PATH=lib \ + -DUSE_PYTHON:BOOL=TRUE \ + -DDISABLE_ASSERTS:BOOL=TRUE \ + -DBUILD_EMACSLISP:BOOL=TRUE + make +} + +package() { + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}