# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
pkgname=adl-submit
pkgver=0.1
pkgrel=1
pkgdesc="Submit events to the Agenda Du Libre"
arch=('any')
url="https://www.agendadulibre.org"
license=('GPL2')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
depends=('python-pycurl')
_commit=('9a3e353dded2577cdafcb92f5c922694c2097125')
source=("git+https://framagit.org/agenda-libre/adl-submit.git#commit=${_commit}")
sha512sums=('SKIP')

build() {
  cd "${pkgname}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${pkgname}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}
