blob: 9e3d10558919f08d995d28374b4d4aed7700d9ba (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Adrian Perez <aperez@igalia.com>
pkgname='beancount-hg'
pkgdesc='Double-Entry Accounting from Text Input'
pkgver=r1711.26890d8c857d
pkgrel=1
arch=('any')
url="http://furius.ca/beancount/"
license=('GPL')
source=("${pkgname}::hg+https://hg.furius.ca/public/beancount/")
sha1sums=('SKIP')
depends=('python-dateutil')
makedepends=('mercurial')
export HGOPTIONS=--insecure
# Hack to make sure we pass --insecure to Mercurial when cloning/pulling
hg () {
if [[ $1 == clone ]] ; then
shift
command hg clone --insecure "$@"
elif [[ $1 == pull ]] ; then
shift
command hg pull --insecure "$@"
else
command hg "$@"
fi
}
# TODO: Add python-cdecimal when package is available
depends=(
python-bottle
wget
)
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}"
}
|