summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97b01978878908408489448077771816614c9f03 (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
# Maintainer: Adrian Perez <aperez@igalia.com>
pkgname='beancount-hg'
pkgdesc='Double-Entry Accounting from Text Input'
pkgver=r2721.24acbceb37ae
pkgrel=2
arch=('i686' 'x86_64')
url="http://furius.ca/beancount/"
license=('GPL')
source=("${pkgname}::hg+https://bitbucket.org/blais/beancount/")
sha1sums=('SKIP')
depends=('python-dateutil' 'python>=3.3')
makedepends=('mercurial')
optdepends=('python-bottle: For the "beancount web" web-based interface')

pkgver () {
	cd "${pkgname}"
	printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build () {
	cd "${pkgname}"
	export CFLAGS='-std=gnu99'
	python3 setup.py build_ext -i
	python3 setup.py build
}

package () {
	cd "${pkgname}"
	python3 setup.py install --prefix=/usr --root="${pkgdir}"
}