diff --git a/python-ihatemoney/PKGBUILD b/python-ihatemoney/PKGBUILD new file mode 100644 index 0000000..19e422d --- /dev/null +++ b/python-ihatemoney/PKGBUILD @@ -0,0 +1,22 @@ +# PKGBUILD generated by pipman +# Python package author: Alexis Métaireau & contributors +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 +}