aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ledger/APKBUILD
blob: 991742dd298f73a6671dbcf111d970c3cb437ef9 (plain) (blame)
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
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=ledger
pkgver=3.1.3
pkgrel=4
pkgdesc="Double-entry accounting system with a command-line reporting interface"
url="https://www.ledger-cli.org/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake boost-dev gmp-dev mpfr-dev texinfo graphviz doxygen gettext"
subpackages="$pkgname-doc"
options="!check" # FIXME: some tests are failing
source="$pkgname-$pkgver.tar.gz::https://github.com/ledger/ledger/archive/v$pkgver.tar.gz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		$CMAKE_CROSSOPTS .
	make -C build
}

check() {
	make -C build check
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="a2a63c80d7313f94eca5d8701ab623ccbe483972b4194bcc7a99dabe8f615b55aba0b933848295de3b3ac8bfb2b71d1d65c73eef315905678ad332695eebbf75  ledger-3.1.3.tar.gz"