|
# Maintainer: Chimo <chimo@chromic.org>
|
|
# NOTE: Opt Deps:
|
|
# - nginx
|
|
# - uwsgi
|
|
#
|
|
# TODO: create user/group spano to run either uwsgi or the app directly
|
|
#
|
|
# NOTE: to run this via uwsgi, we need uswgi, uwsgi-python3
|
|
# and add the spano.ini file in this dir to /etc/uwsgi/conf.d
|
|
#
|
|
# File ownership for spano.ini should be spano:spano and nginx should
|
|
# be added to the 'spano' group to be able to access to socket at
|
|
# /run/spano/spano.sock. Then `service start uwsgi`
|
|
#
|
|
# We also need the patched version of /usr/share/webapps/spano/run.py
|
|
# which can be found in this dir.
|
|
#
|
|
# FIXME: some deps are probably redundant
|
|
# should probably be something like
|
|
# py3-flask-hashfs, py3-flask-indieauth, py3-magic
|
|
pkgname="spano"
|
|
pkgver=0.0.1
|
|
pkgrel=0
|
|
pkgdesc="A micropub media endpoint written in Python using Flask and Flask-HashFS"
|
|
url="https://github.com/martymcguire/spano"
|
|
arch="noarch"
|
|
license="Apache 2.0"
|
|
depends="
|
|
python3
|
|
py3-flask
|
|
py3-flask-hashfs
|
|
py3-flask-indieauth
|
|
py3-hashfs
|
|
py3-magic
|
|
"
|
|
makedepends=""
|
|
options="!check"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/martymcguire/spano/archive/master.tar.gz
|
|
"
|
|
builddir="$srcdir/spano-master"
|
|
|
|
package() {
|
|
installdir="$pkgdir/usr/share/webapps"
|
|
mkdir -p "$installdir"
|
|
cp -r "$srcdir/spano-master" "$installdir"/"$pkgname"
|
|
}
|
|
|
|
sha512sums="febf1b6637fe1d4da3e0507ce5208f5023047990b52697d301f5d1fcac2ecfd06e63b30108856cab88c4589625a84b72e371cc77119cfd3775d3c38f5213226b spano-0.0.1.tar.gz"
|