[arch-commits] Commit in ledger/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 31 13:39:30 UTC 2018
Date: Thursday, May 31, 2018 @ 13:39:30
Author: felixonmars
Revision: 334827
archrelease: copy trunk to community-staging-x86_64
Added:
ledger/repos/community-staging-x86_64/
ledger/repos/community-staging-x86_64/PKGBUILD
(from rev 334826, ledger/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: ledger/repos/community-staging-x86_64/PKGBUILD (from rev 334826, ledger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-31 13:39:30 UTC (rev 334827)
@@ -0,0 +1,46 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Abdelhakim Qbaich <abdelhakim at qbaich.com>
+# Contributor: korjjj <korjjj+aur at gmail.com>
+# Contributor: TDY <tdy at archlinux.info>
+# Contributor: Adam Ehlers Nyholm Thomsen <adament at gmail.com>
+# Contributor: Nathan Jones <nathanj at insightbb.com>
+
+pkgname=ledger
+pkgver=3.1.1
+pkgrel=6
+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")
+sha256sums=('90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a'
+ '3fe6750973d1ac10c822735759b35f362a68afb3dfa9887aaa7d83839a9e99eb')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ sed -i '/enable_testing()\|add_subdirectory(test)/d' CMakeLists.txt
+ patch -p1 -i "$srcdir/$pkgname-boost-1.61.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"
+}
More information about the arch-commits
mailing list