Add python-ihatemoney

This commit is contained in:
2018-12-26 23:04:31 +01:00
parent d7ab0caa67
commit ae4f777dc2

View File

@@ -0,0 +1,22 @@
# PKGBUILD generated by pipman
# Python package author: Alexis Métaireau & contributors <alexis@notmyidea.org>
pkgname=python-ihatemoney
pkgver=3.0
pkgrel=1
pkgdesc="A simple shared budget manager web application."
arch=(any)
url="https://github.com/spiral-project/ihatemoney"
license=(Custom BSD Beerware)
makedepends=("python" "python-pip")
depends=("python-email-validator" "python-blinker" "python-flask-restful" "python-flask-babel" "python-flask-script" "python-flask-migrate" "python-flask-mail" "python-flask-wtf")
build() {
pip install --no-deps --target="ihatemoney" ihatemoney==3.0
}
package() {
sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
mkdir -p $pkgdir/"$sitepackages"
cp -r $srcdir/ihatemoney/* $pkgdir/"$sitepackages"
mkdir -p $pkgdir/etc/ihatemoney
}