summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..167fa82e9df1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Kristóf Marussy <kristof@marussy.com>
+# Contributor: Adrian Perez <aperez@igalia.com>
+pkgname=beanprice-git
+pkgdesc='Double-Entry Accounting from Text Input'
+pkgver=1.0.1.r11.g7614b25
+pkgrel=1
+arch=(any)
+url=http://furius.ca/beancount/
+license=(GPL)
+source=("${pkgname}::git+https://github.com/beancount/beanprice/")
+sha512sums=('SKIP')
+depends=('python>=3.5' 'beancount>=2.3.1' 'python-dateutil' 'python-requests')
+makedepends=('git' 'python-pytest')
+provides=("beanprice=${pkgver%%.r*}")
+conflicts=(beanprice)
+
+pkgver() {
+ cd "${pkgname}"
+ (
+ set -o pipefail
+ git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' ||
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+ check () {
+ cd "${pkgname}"
+ pytest beanprice
+}
+
+package () {
+ cd "${pkgname}"
+ python3 setup.py install --prefix=/usr --root="${pkgdir}"
+}
+